First published: Mon Feb 17 2025(Updated: )
A flaw was found in grub2. When reading data from a squash4 filesystem, grub's squash4 fs module uses user-controlled parameters from the filesystem geometry to determine the internal buffer size, however, it improperly checks for integer overflows. A maliciously crafted filesystem may lead some of those buffer size calculations to overflow, causing it to perform a grub_malloc() operation with a smaller size than expected. As a result, the direct_read() will perform a heap based out-of-bounds write during data reading. This flaw may be leveraged to corrupt grub's internal critical data and may result in arbitrary code execution, by-passing secure boot protections.
Credit: secalert@redhat.com
Affected Software | Affected Version | How to fix |
---|---|---|
Ubuntu GRUB (GNU GRand Unified Bootloader) |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2025-0678 has been classified as a moderate severity vulnerability.
To mitigate CVE-2025-0678, it is recommended to update to the latest version of the GNU GRUB that addresses this flaw.
CVE-2025-0678 affects the GNU GRUB bootloader, specifically on systems utilizing the squash4 filesystem.
CVE-2025-0678 can potentially allow an attacker to exploit integer overflow vulnerabilities when reading from a maliciously crafted squash4 filesystem.
Currently, there is no specified workaround for CVE-2025-0678, so applying the patch is essential.