CVE-2025-0678 Grub2: squash4: integer overflow may lead to heap based out-of-bounds write when reading data
HighCVSS 7.8
EPSS 0.33%
- Published
- Updated
- Exploit status
- No public exploit known
Description
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| azure linux grub2(Azure Linux:3.0) | < 2.06-25 | 2.06-25 |
| cbl-mariner grub2(CBL-Mariner:2.0) | < 2.06-15 | 2.06-15 |
| debian/grub2(Debian:12) | < 2.06-13+deb12u2 | 2.06-13+deb12u2 |
| debian/grub2(Debian:12) | = 2.06-13 | No fix listed |
| debian/grub2(Debian:12) | = 2.06-13+deb12u1 | No fix listed |
| debian/grub2(Debian:13) | < 2.12-6 | 2.12-6 |
| debian/grub2(Debian:14) | < 2.12-6 | 2.12-6 |
| grub2 | <= 2.12 | No fix listed |
| redhat enterprise linux | = 10 | No fix listed |
| redhat rhel els | = 7 | No fix listed |
| redhat enterprise linux | = 8 | No fix listed |
| redhat enterprise linux | = 9 | No fix listed |
| redhat openshift | = 4 | No fix listed |
| ubuntu/grub2-signed(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/grub2-unsigned(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/grub2-signed(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/grub2-unsigned(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/grub2-signed(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/grub2-unsigned(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/grub2-signed(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/grub2-unsigned(Ubuntu:26.10) | All versions | No fix listed |
| GNU grub2 | <= 2.12 | No fix listed |
| redhat openshift container platform | = 4.0 | No fix listed |
| redhat enterprise linux | = 7.0 | No fix listed |
| redhat enterprise linux | = 8.0 | No fix listed |
Show 1 more
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat enterprise linux | = 9.0 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2025-0678 vendor-advisory
- access.redhat.com broken-link vdb-entry
- RHBZ#2346118 issue-tracking
- lists.gnu.org
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking