CVE-2024-45775
JSON

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 packageVersionsReported by
grub2up to 2.12
Not affected: from 1:2.06-104.el9_6 before *
CVE List
openshift/ose-rhel-coreos-9Not specifiedCVE List

Classification

CWE-252

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

Sources

SourceRecordLicence
CVE ListCVE-2024-45775 changed 2026-11-24CVE Terms of Use
NVDCVE-2024-45775 changed 2026-11-24Public domain