CVE Catalog

CVE-2025-0678

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.27%

18th percentile - higher than 18% of all known CVEs

Summary

A flaw in GRUB2's squash4 module improperly checks integer overflows when determining internal buffer sizes from filesystem geometry. A crafted filesystem can cause a smaller buffer allocation, leading to a heap-based out-of-bounds write during data reading. This could allow arbitrary code execution and bypass Secure Boot protections.

Risk Assessment

An attacker could exploit this vulnerability to corrupt GRUB2's critical internal data, potentially leading to arbitrary code execution and bypassing Secure Boot, compromising the system boot integrity.

Recommendation

Update GRUB2 to the latest patched version immediately. Avoid mounting untrusted squash4 filesystem images until the update is applied.

Other vulnerabilities in GRUB2

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS