CVE-2024-45775Unchecked Return Value in Grub2

Severity
5.2MEDIUMNVD
EPSS
0.0%
top 92.28%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedFeb 18

Description

A flaw was found in grub2 where the grub_extcmd_dispatcher() function calls grub_arg_list_alloc() to allocate memory for the grub's argument list. However, it fails to check in case the memory allocation fails. Once the allocation fails, a NULL point will be processed by the parse_option() function, leading grub to crash or, in some rare scenarios, corrupt the IVT data.

CVSS vector

CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:HExploitability: 0.5 | Impact: 4.7

Affected Packages6 packages

🔴Vulnerability Details

2
GHSA
GHSA-pf8f-3pq9-mrv7: A flaw was found in grub2 where the grub_extcmd_dispatcher() function calls grub_arg_list_alloc() to allocate memory for the grub's argument list2025-02-18
OSV
CVE-2024-45775: A flaw was found in grub2 where the grub_extcmd_dispatcher() function calls grub_arg_list_alloc() to allocate memory for the grub's argument list2025-02-18

📋Vendor Advisories

3
Microsoft
Grub2: commands/extcmd: missing check for failed allocation2025-02-11
Red Hat
grub2: commands/extcmd: Missing check for failed allocation2025-01-28
Debian
CVE-2024-45775: grub2 - A flaw was found in grub2 where the grub_extcmd_dispatcher() function calls grub...2024