CVE-2024-45775
Grub2: commands/extcmd: missing check for failed allocation
- State
- Published
- Severity
- 5.2 Medium
- Published
- Feb 18, 2025
- Updated
- Oct 21, 2026
- Reserved
- Sep 8, 2024
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 5.2 Medium | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:H | redhat |
Weaknesses
- CWE-252 Unchecked Return Value
Affected Products
| Product | Versions |
|---|---|
grub2 |
|
Red Hat Enterprise Linux 9Red Hat |
|
Red Hat Enterprise Linux 10Red Hat | |
Red Hat Enterprise Linux 7Red Hat | |
Red Hat Enterprise Linux 8Red Hat | |
Red Hat OpenShift Container Platform 4Red Hat |
References
- RHSA-2025:6990vendor-advisory
- https://access.redhat.com/security/cve/CVE-2024-45775vdb-entry
- RHBZ#2337481issue-tracking
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.