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.
Workaround:
The product does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.
Link | Tags |
---|---|
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 |