5.2medium
Grub2: commands/extcmd: missing check for failed allocation
- Severity
- 5.2medium CVSS:3.1 by redhat
- Exploit likelihood
- 0.29% (higher than 23% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| grub2 | up to 2.12 Not affected: from 1:2.06-104.el9_6 before * | CVE List |
| openshift/ose-rhel-coreos-9 | Not specified | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Se encontró una falla en GRUB2 donde la función Grub_extCMD_DISPATCHER () llama a Grub_arg_List_Alloc () para asignar memoria para la lista de argumentos de GRUB. Sin embargo, no se verifica en caso de que la asignación de memoria falle. Una vez que la asignación falla, la función NULL se procesará mediante la función parse_option (), lo que lleva a la comida a bloquear o, en algunos escenarios raros, corrompe los datos IVT.
References
| https://access.redhat.com/errata/RHSA-2025:6990 | vendor-advisory | |
| https://access.redhat.com/security/cve/CVE-2024-45775 | vdb-entry | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2337481 | issue-tracking | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-45775 changed 2026-11-24 | CVE Terms of Use |
| NVD | CVE-2024-45775 changed 2026-11-24 | Public domain |