LiveActive security incident?Get immediate response
CVE Record

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.

HighCVSS 7.8Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

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.
Prepared
Confidence
medium
Sources
5

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.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

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.

Open ATT&CK lookup
description · low confidence lookup

Container behavior lookup

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.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2025-1125 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.8 (3.1)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

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.

ScoreVersionSeverityVectorExploitImpactSource
7.8CVSS 3.1HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H1.85.9redhat

Vulnerability scoring details

Base CVSS 3.1 score

7.8High
CVSS 3.1 vector shape for CVE-2025-1125Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. Source timelineredhat

    Reported to Red Hat.

  3. Source timelineredhat

    Made public.

  4. CVE publishedCVE Program

    The CVE record was published.

  5. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvc

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
Unknown vendorgrub2grub2, 0unaffected
Red HatRed Hat Enterprise Linux 10grub2unaffected
Red HatRed Hat Enterprise Linux 7grub2unaffected
Red HatRed Hat Enterprise Linux 8grub2unaffected
Red HatRed Hat Enterprise Linux 9grub2unaffected
Red HatRed Hat OpenShift Container Platform 4rhcosunaffected
Weakness

CWE details

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.