All reports
Medium

grub2: use-after-free in grub_cmd_chainloader()

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2022-28736

Probability of exploitation in the next 30 days: 0.29%

FIRST EPSS · 2026-11-19

Description

There's a use-after-free vulnerability in grub_cmd_chainloader() function; The chainloader command is used to boot up operating systems that doesn't support multiboot and do not have direct support from GRUB2. When executing chainloader more than once a use-after-free vulnerability is triggered. If an attacker can control the GRUB2's memory allocation pattern sensitive data may be exposed and arbitrary code execution can be achieved.

A use-after-free vulnerability was found on grub2's chainloader command. This flaw allows an attacker to gain access to restricted data or cause arbitrary code execution if they can establish control from grub's memory allocation pattern.