6.4
CVSSv3

CVE-2025-0678

CVSSv4: NA | CVSSv3: 6.4 | CVSSv2: NA | VMScore: 740 | EPSS: 0.00017 | KEV: Not Included
Published: 03/03/2025 Updated: 03/03/2025

Vulnerability Summary

Heap Overflow in GRUB2 Squash4 Filesystem Module Enables Arbitrary Code Execution

A vulnerability exists in grub2's squash4 filesystem module that can lead to serious security risks. When reading data from a squash4 filesystem, the module uses user-controlled parameters to calculate buffer sizes without properly checking for integer overflows. This means a maliciously crafted filesystem could cause buffer size calculations to overflow, resulting in a grub_malloc() operation with an unexpectedly small buffer size. The direct_read() function may then perform a heap-based out-of-bounds write during data reading. This flaw could potentially allow an attacker to corrupt grub's critical internal data and potentially execute arbitrary code, effectively bypassing secure boot protections.

Vulnerability Trend

Vulnerable Product Search on Vulmon Subscribe to Product

red hat red hat enterprise linux 7

red hat red hat enterprise linux 8

red hat red hat enterprise linux 9

red hat red hat openshift container platform 4

Vendor Advisories

Debian Bug report logs - #1098319 grub2: CVE-2024-45774 CVE-2024-45775 CVE-2024-45776 CVE-2024-45777 CVE-2024-45778 CVE-2024-45779 CVE-2024-45780 CVE-2024-45781 CVE-2024-45782 CVE-2024-45783 CVE-2025-0622 CVE-2025-0624 CVE-2025-0677 CVE-2025-0678 CVE-2025-0684 CVE-2025-0685 CVE-2025-0686 CVE-2025-0689 CVE-2025-0690 CVE-2025-1118 CVE-2025-1125 ...

Mailing Lists

listsgnuorg/archive/html/grub-devel/2025-02/msg00024html 1) CVE-2024-45774: reader/jpeg: Heap OOB Write during JPEG parsing 2) CVE-2024-45775: commands/extcmd: Missing check for failed allocation 3) CVE-2024-45776: grub-core/gettext: Integer overflow leads to Heap OO Write and Read 4) CVE-2024-45777: grub-core/ge ...

Recent Articles

Microsoft uses AI to find flaws in GRUB2, U-Boot, Barebox bootloaders
BleepingComputer • Bill Toulas • 31 Mar 2025

Microsoft uses AI to find flaws in GRUB2, U-Boot, Barebox bootloaders By Bill Toulas March 31, 2025 03:56 PM 0 Microsoft used its AI-powered Security Copilot to discover 20 previously unknown vulnerabilities in the GRUB2, U-Boot, and Barebox open-source bootloaders. GRUB2 (GRand Unified Bootloader) is the default boot loader for most Linux distributions, including Ubuntu, while U-Boot and Barebox are commonly used in embedded and IoT devices. Microsoft discovered eleven vulnerabilities...