CVEfocus › CVE database › CVE-2025-0678

CVE-2025-0678Grub2: squash4: integer overflow may lead to heap based out-of-bounds write when reading…

CVSS 7.8 HighEPSS 0.3% (higher than 27% of CVEs)Published 2025-03-03Updated 2026-11-24Assigner: redhat

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.

CWE-190

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
8Fix pending
6Under investigation
4Will not fix
77Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10grub2-signedFix pendingUBUNTU-CVE-2025-0678
Ubuntu 26.10grub2-unsignedFix pendingUBUNTU-CVE-2025-0678
Ubuntu 26.04grub2Not affected
vulnerable_code_not_present
Ubuntu 26.04grub2-signedUnder investigationUBUNTU-CVE-2025-0678
Ubuntu 26.04grub2-unsignedUnder investigationUBUNTU-CVE-2025-0678
Ubuntu 25.10grub2Not affected
vulnerable_code_not_present
Ubuntu 25.10grub2-signedWill not fix
the grub2 package does not affect Ubuntu's Secure Boot grub2-unsigned contains Secure Boot security fixes grub2 and grub2-unsigned should have same major…
UBUNTU-CVE-2025-0678
Ubuntu 25.10grub2-unsignedWill not fix
the grub2 package does not affect Ubuntu's Secure Boot grub2-unsigned contains Secure Boot security fixes grub2 and grub2-unsigned should have same major…
UBUNTU-CVE-2025-0678
Ubuntu 24.04grub2Not affected
vulnerable_code_not_present
Ubuntu 24.04grub2-signedUnder investigationUBUNTU-CVE-2025-0678
Ubuntu 24.04grub2-unsignedUnder investigationUBUNTU-CVE-2025-0678
Ubuntu 22.04grub2Not affected
vulnerable_code_not_present
Ubuntu 22.04grub2-signedUnder investigationUBUNTU-CVE-2025-0678
Ubuntu 22.04grub2-unsignedUnder investigationUBUNTU-CVE-2025-0678
Ubuntu 20.04grub2Not affected
vulnerable_code_not_present
Ubuntu 20.04grub2-signedWill not fix
the grub2 package does not affect Ubuntu's Secure Boot grub2-unsigned contains Secure Boot security fixes grub2 and grub2-unsigned should have same major…
UBUNTU-CVE-2025-0678
Ubuntu 20.04grub2-unsignedWill not fix
the grub2 package does not affect Ubuntu's Secure Boot grub2-unsigned contains Secure Boot security fixes grub2 and grub2-unsigned should have same major…
UBUNTU-CVE-2025-0678
Ubuntu 18.04grub2-signedFix pendingUBUNTU-CVE-2025-0678
Ubuntu 18.04grub2-unsignedFix pendingUBUNTU-CVE-2025-0678
Ubuntu 16.04grub2-signedFix pendingUBUNTU-CVE-2025-0678
Ubuntu 16.04grub2-unsignedFix pendingUBUNTU-CVE-2025-0678
Ubuntu 14.04grub2Fix pendingUBUNTU-CVE-2025-0678
Ubuntu 14.04grub2-signedFix pendingUBUNTU-CVE-2025-0678
Debian 14grub2Fixed2.12-6DEBIAN-CVE-2025-0678
Debian 13grub2Fixed2.12-6DEBIAN-CVE-2025-0678
Debian 12grub2Fixed2.06-13+deb12u2DEBIAN-CVE-2025-0678
Red Hat Enterprise Linux 10grub2Not affected
Red Hat Enterprise Linux 10grub2-commonNot affected
Red Hat Enterprise Linux 10grub2-efi-aa64Not affected
Red Hat Enterprise Linux 10grub2-efi-aa64-cdbootNot affected
Red Hat Enterprise Linux 10grub2-efi-aa64-modulesNot affected
Red Hat Enterprise Linux 10grub2-efi-x64Not affected
Red Hat Enterprise Linux 10grub2-efi-x64-cdbootNot affected
Red Hat Enterprise Linux 10grub2-efi-x64-modulesNot affected
Red Hat Enterprise Linux 10grub2-pcNot affected
Red Hat Enterprise Linux 10grub2-pc-modulesNot affected
Red Hat Enterprise Linux 10grub2-ppc64leNot affected
Red Hat Enterprise Linux 10grub2-ppc64le-modulesNot affected
Red Hat Enterprise Linux 10grub2-toolsNot affected
Red Hat Enterprise Linux 10grub2-tools-efiNot affected
Red Hat Enterprise Linux 10grub2-tools-extraNot affected
Red Hat Enterprise Linux 10grub2-tools-minimalNot affected
Red Hat Enterprise Linux 9grub2Not affected
Red Hat Enterprise Linux 9grub2-commonNot affected
Red Hat Enterprise Linux 9grub2-efi-aa64Not affected
Red Hat Enterprise Linux 9grub2-efi-aa64-cdbootNot affected
Red Hat Enterprise Linux 9grub2-efi-aa64-modulesNot affected
Red Hat Enterprise Linux 9grub2-efi-x64Not affected
Red Hat Enterprise Linux 9grub2-efi-x64-cdbootNot affected
Red Hat Enterprise Linux 9grub2-efi-x64-modulesNot affected
Red Hat Enterprise Linux 9grub2-pcNot affected
Red Hat Enterprise Linux 9grub2-pc-modulesNot affected
Red Hat Enterprise Linux 9grub2-ppc64leNot affected
Red Hat Enterprise Linux 9grub2-ppc64le-modulesNot affected
Red Hat Enterprise Linux 9grub2-toolsNot affected
Red Hat Enterprise Linux 9grub2-tools-efiNot affected
Red Hat Enterprise Linux 9grub2-tools-extraNot affected
Red Hat Enterprise Linux 9grub2-tools-minimalNot affected
Red Hat Enterprise Linux 8grub2Not affected
Red Hat Enterprise Linux 8grub2-commonNot affected
Red Hat Enterprise Linux 8grub2-efi-aa64Not affected
Red Hat Enterprise Linux 8grub2-efi-aa64-cdbootNot affected
Red Hat Enterprise Linux 8grub2-efi-aa64-modulesNot affected
Red Hat Enterprise Linux 8grub2-efi-ia32Not affected
Red Hat Enterprise Linux 8grub2-efi-ia32-cdbootNot affected
Red Hat Enterprise Linux 8grub2-efi-ia32-modulesNot affected
Red Hat Enterprise Linux 8grub2-efi-x64Not affected
Red Hat Enterprise Linux 8grub2-efi-x64-cdbootNot affected
Red Hat Enterprise Linux 8grub2-efi-x64-modulesNot affected
Red Hat Enterprise Linux 8grub2-pcNot affected
Red Hat Enterprise Linux 8grub2-pc-modulesNot affected
Red Hat Enterprise Linux 8grub2-ppc64leNot affected
Red Hat Enterprise Linux 8grub2-ppc64le-modulesNot affected
Red Hat Enterprise Linux 8grub2-toolsNot affected
Red Hat Enterprise Linux 8grub2-tools-efiNot affected
Red Hat Enterprise Linux 8grub2-tools-extraNot affected
Red Hat Enterprise Linux 8grub2-tools-minimalNot affected
Red Hat Enterprise Linux 7grub2Not affected
Red Hat Enterprise Linux 7grub2-commonNot affected
Red Hat Enterprise Linux 7grub2-efiNot affected
Red Hat Enterprise Linux 7grub2-efi-aa64-modulesNot affected
Red Hat Enterprise Linux 7grub2-efi-ia32Not affected
Red Hat Enterprise Linux 7grub2-efi-ia32-cdbootNot affected
Red Hat Enterprise Linux 7grub2-efi-ia32-modulesNot affected
Red Hat Enterprise Linux 7grub2-efi-modulesNot affected
Red Hat Enterprise Linux 7grub2-efi-x64Not affected
Red Hat Enterprise Linux 7grub2-efi-x64-cdbootNot affected
Red Hat Enterprise Linux 7grub2-efi-x64-modulesNot affected
Red Hat Enterprise Linux 7grub2-pcNot affected
Red Hat Enterprise Linux 7grub2-pc-modulesNot affected
Red Hat Enterprise Linux 7grub2-ppc-modulesNot affected
Red Hat Enterprise Linux 7grub2-ppc64Not affected
Red Hat Enterprise Linux 7grub2-ppc64-modulesNot affected
Red Hat Enterprise Linux 7grub2-ppc64leNot affected
Red Hat Enterprise Linux 7grub2-ppc64le-modulesNot affected
Red Hat Enterprise Linux 7grub2-toolsNot affected
Red Hat Enterprise Linux 7grub2-tools-extraNot affected
Red Hat Enterprise Linux 7grub2-tools-minimalNot affected

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.