CVE-2025-0678 Details
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.
An integer overflow vulnerability has been identified in the GRUB2 squash4 filesystem module. When the module reads data from a squash4 filesystem, it uses user-controlled parameters from the filesystem geometry to calculate the internal buffer size. However, the module fails to properly validate these calculations, allowing a maliciously crafted filesystem to manipulate the buffer size calculations. This oversight can cause the buffer size to overflow, leading to a memory allocation (grub_malloc()) with an unexpectedly small size. Consequently, the direct_read() function can perform a heap-based out-of-bounds write while reading data. This vulnerability could be exploited to corrupt GRUB's critical internal data, potentially allowing arbitrary code execution and bypassing secure boot protections.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 4, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-190 | Integer Overflow or Wraparound | [email protected] |
| CWE-190 | Integer Overflow or Wraparound | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| gnu grub2 | <= 2.12 |
CPE
Remediation
| |
| redhat openshift container platform | 4.0 |
CPE
Remediation
| |
| redhat enterprise linux | 7.0 8.0 9.0 |
CPE
Remediation
| |
Change History
9 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 30, 2026 | CVE Modified | [email protected] |
| Jun 26, 2026 | CVE Modified | [email protected] |
| Jun 25, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Mar 25, 2025 | CVE Modified | [email protected] |
| Mar 21, 2025 | CVE Modified | [email protected] |
| Mar 7, 2025 | Initial Analysis | [email protected] |
| Mar 3, 2025 | New CVE Received | [email protected] |