CVE-2025-1125: Grub2: fs/hfs: integer overflow may lead to heap based out-of-bounds write
When 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.
Security readout for executives and security teams
Plain-English summary
CVE-2025-1125 is a GRUB2 bootloader flaw triggered by a maliciously crafted HFS filesystem. If a system is made to read that filesystem during boot, memory corruption could allow code execution and potentially bypass Secure Boot. Public sources do not show active exploitation, and Red Hat currently lists its named products as unaffected.
Executive priority
Treat as a high-priority boot-chain issue for fleets using GRUB2, especially endpoints, kiosks, labs, and servers with local media exposure. Do not assume impact across all Linux systems; confirm vendor status. Red Hat-listed products in the provided source are marked unaffected.
Technical view
GRUB2’s HFS filesystem handling uses filesystem-controlled metadata in buffer size calculations without adequate integer-overflow checks. Overflow can cause an undersized grub_malloc allocation, followed by a heap out-of-bounds write in hfsplus_open_compressed_real(). The CVSS is 7.8: local attack vector, low complexity, no privileges, user interaction required, with high confidentiality, integrity, and availability impact.
Likely exposure
Exposure is most relevant where GRUB2 can process attacker-controlled HFS or HFS+ filesystems, such as removable media, disk images, or boot paths influenced by local access. Red Hat’s CVE page marks listed RHEL and OpenShift Container Platform entries as unaffected. Other GRUB2 downstreams require vendor-specific confirmation.
Exploitation context
The source bundle reports no CISA KEV listing and provides no cited evidence of active exploitation. Exploitation requires local conditions and user interaction: the bootloader must read a crafted HFS filesystem. Successful exploitation could corrupt GRUB internals and may bypass Secure Boot protections.
Researcher notes
Key weakness is CWE-787 from integer overflow in HFS buffer sizing. The reported vulnerable path is hfsplus_open_compressed_real(), producing a heap out-of-bounds write after undersized allocation. Public evidence in the bundle does not include exploitation details or a universal upstream fix statement, so downstream advisories are essential.
Mitigation direction
Check your OS or appliance vendor advisory for affected GRUB2 builds and fixes.
Prioritize systems that boot from or inspect removable or user-supplied media.
Restrict unauthorized physical access and untrusted boot media where feasible.
Confirm whether your distribution marks its GRUB2 packages affected or unaffected.
Apply vendor-provided GRUB2, shim, or bootloader updates if issued.
Validation and detection
Inventory systems using GRUB2 in the boot chain.
Check vendor CVE status for each distribution and appliance image.
Determine whether GRUB2 HFS filesystem support is present or enabled.
Review boot policies for removable, external, or user-controlled media.
Verify Secure Boot update guidance from the platform vendor.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-787: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
The affected technology mentions containers, so container-specific ATT&CK technique review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
5Timeline events
1ADP providers
4Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-787 · source CWE mapping
Out-of-bounds Write
Out-of-bounds Write represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.