An integer overflow flaw was found in the BFS file system driver in grub2. When reading a file with an indirect extent map, grub2 fails to validate the number of extent entries to be read. A crafted or corrupted BFS filesystem may cause an integer overflow during the file reading, leading to a heap of bounds read. As a consequence, sensitive data may be leaked, or grub2 will crash.
Workaround:
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
Link | Tags |
---|---|
https://access.redhat.com/security/cve/CVE-2024-45779 | vdb entry third party advisory |
https://bugzilla.redhat.com/show_bug.cgi?id=2345854 | issue tracking |
https://lists.gnu.org/archive/html/grub-devel/2025-02/msg00024.html | mailing list |