CVE-2025-0678

HIGH
Published Mar 3, 2025 Modified Mar 25, 2025 CWE-190

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.

Is your site exposed to CVE-2025-0678?

Run a free security scan — no signup, results in seconds.

CVSS v3.1 Score

7.8
HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weakness Type (CWE)

CWE-190 Integer Overflow

Affected Products

Vendor Product
gnu grub2
redhat openshift_container_platform
redhat enterprise_linux
redhat enterprise_linux
redhat enterprise_linux

References

Frequently Asked Questions

What is CVE-2025-0678? +
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. It has a CVSS v3.1 base score of 7.8 (HIGH).
How severe is CVE-2025-0678? +
CVE-2025-0678 has a CVSS v3.1 score of 7.8 out of 10, rated HIGH. This is a high-severity vulnerability that should be prioritized for patching.
What products are affected by CVE-2025-0678? +
CVE-2025-0678 affects products from gnu, redhat, specifically: enterprise_linux, grub2, openshift_container_platform. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2025-0678? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2025-0678 — free, no signup required.