CVE-2025-1125
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedWhen reading data from a hfs filesystem, grub's hfs filesystem module uses user-controlled parameters from the filesystem metadata to calculate the internal buffers size, however it misses to properly check for integer overflows. A maliciouly crafted filesystem may lead some of those buffer size calculation to overflow, causing it to perform a grub_malloc() operation with a smaller size than expected. As a result the hfsplus_open_compressed_real() function will write past of the internal buffer length. This flaw may be leveraged to corrupt grub's internal critical data and may result in arbitrary code execution by-passing secure boot protections.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceInteger overflow vulnerability in GRUB's HFS+ filesystem module where metadata-derived buffer size calculations lack overflow validation. A maliciously crafted HFS+ filesystem causes grub_malloc() to allocate undersized buffers, resulting in heap buffer overflow in hfsplus_open_compressed_real() that corrupts internal memory and can enable arbitrary code execution, bypassing Secure Boot protections.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data<= 2.12CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Local
- Complexity
- Low
- Privileges
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify GRUB versionRun 'grub-install --version' or check the package manager (e.g., 'dpkg -l grub-*' on Debian/Ubuntu, 'rpm -qa | grep grub' on RHEL/CentOS)Affected if Version is 2.12 or lower
-
Locate HFS+ filesystem moduleSearch for the hfsplus module in the GRUB modules directory (typically /usr/lib/grub/*/hfsplus.mod or /boot/grub/*/hfsplus.mod)Affected if The hfsplus.mod module file exists in the GRUB installation
-
Check boot configuration for HFS+ usageInspect GRUB config files (/boot/grub/grub.cfg, /etc/default/grub) and bootloader config for references to 'hfsplus' or 'set root=' pointing to HFS+ partitions. Also check /etc/fstab for mounted HFS+ filesystems.Affected if GRUB configuration loads or references HFS+ filesystems at boot time (the vulnerable code path hfsplus_open_compressed_real() is triggered when opening a compressed HFS+ file)
-
Identify boot partitions using HFS+Use 'blkid' or 'file -s /dev/sd*' to list partition filesystems. If any partition used by GRUB for /boot or as the boot partition is HFS+, the vulnerable code path can be reached.Affected if Boot loader or boot partition uses HFS+ filesystem
Environment is affected if GRUB version is 2.12 or lower AND the HFS+ module is present and the system boots from or loads an HFS+ filesystem, enabling the vulnerable hfsplus_open_compressed_real() code path.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpdate GRUB to a patched version containing integer overflow checks in the hfs filesystem module. Verify integrity of the boot chain and ensure Secure Boot is properly enforced. For systems mounting HFS+ filesystems at boot, apply updates immediately.
Grub2 version > 2.12 (e.g., 2.12-1 or later, exact version depends on distribution)
- Verify the current Grub2 version installed on the system using: grub2-install --version or rpm -q grub2*
- Obtain the patched Grub2 version from the distribution's official security repository (Red Hat, or downstream distributions like CentOS, Fedora)
- Ensure secure boot is disabled or in setup mode before modifying Grub2
- Download or update the Grub2 package to a version newer than 2.12 that includes the CVE-2025-1125 fix
- Back up the current Grub2 installation and configuration (typically /boot/grub2/ or /boot/efi/EFI/*/grubx64.efi)
- Install the updated Grub2 package using the distribution's package manager (e.g., dnf update grub2* or yum update grub2*)
- Reinstall Grub2 to the boot disk/EFI partition if necessary: grub2-install /dev/sdX for BIOS or grub2-install --target=x86_64-efi for UEFI
- Regenerate Grub configuration: grub2-mkconfig -o /boot/grub2/grub.cfg (BIOS) or grub2-mkconfig -o /boot/efi/EFI/*/grub.cfg (UEFI)
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation8.0 h
- Testing6.0 h
- Review / QA4.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $6,176.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-1125 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-1125 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data