When reading the language .mo file in grub_mofile_open(), grub2 fails to verify an integer overflow when allocating its internal buffer. A crafted .mo file may lead the buffer size calculation to overflow, leading to out-of-bound reads and writes. This flaw allows an attacker to leak sensitive data or overwrite critical data, possibly circumventing secure boot protections.
Workaround:
The product writes data past the end, or before the beginning, of the intended buffer.
Link | Tags |
---|---|
https://access.redhat.com/errata/RHSA-2025:6990 | vendor advisory |
https://access.redhat.com/security/cve/CVE-2024-45776 | vdb entry |
https://bugzilla.redhat.com/show_bug.cgi?id=2339182 | issue tracking |