Skip to content
VulniPulse
High 2 vendors · 2 advisories

CVE-2025-1125: Grub2: fs/hfs: integer overflow may lead to heap based out-of-bounds write

CVE-2025-1125 key facts

CISA KEV
Not listed (catalogue checked )
Highest advisory rating
High
CVSS base score
7.8 (Red Hat), 6.7 (NetApp)
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H · base score 7.8, scored by redhatAttack vector: local. Attack complexity: low. Privileges required: none. User interaction: required. Scope: unchanged. Confidentiality impact: high. Integrity impact: high. Availability impact: high.
Weakness
  • CWE-787 Out-of-bounds Write
EPSS
0.47% chance of exploitation in the next 30 days (41st percentile). FIRST EPSS, .
CISA SSVC
Exploitation: none observed. Automatable: no. Technical impact: total. CISA, .
Vendor advisories
2 from NetApp, Red Hat
Assigned by
redhat (CNA)
CVE record published
Listed by VulniPulse
Record changed

Ratings, versions and fixes are quoted from the vendor advisories that cover only CVE-2025-1125; each belongs to its advisory, not to every product listed. How records are collected and checked.

Description

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.

Text from the CVE.org record (redhat).

How do I fix CVE-2025-1125?

  • Do not run grub2 in an untrusted environment, specifically with a HFS file system image. (Red Hat)
  • Workaround: Do not run grub2 in an untrusted environment, specifically with a HFS file system image. (CVE.org record)

Vendor advisories for CVE-2025-1125

NetApp

1 advisory
  • Advisory severityMedium6.7

    Medium [CVE-2025-1125] Grub Vulnerability in NetApp Products

    NTAP-20260102-0002Source published Source updated

    Multiple NetApp products incorporate Grub. Grub versions through 2.12 are susceptible to a vulnerability which when successfully exploited could lead to disclosure of sensitive information, addition or modification of data, or Denial of Service (DoS). Affected products: Active IQ Unified Manager for VMware vSphere. NetApp states there is no workaround available at this time.

    Affected products in this advisory
    • Active IQ Unified Manager for VMware vSphere
    Source-reported affected versions
    • 2.12
    Source-reported fixed versions
    No fixed-version detail extracted. This does not mean no fix exists.
    Mitigation guidance
    No mitigation guidance extracted; consult the source.

Red Hat

1 advisory
  • Advisory severityHigh7.8

    High [CVE-2025-1125] integer overflow may lead to heap based out-of-bounds write

    CVE-2025-1125Source published Source updated

    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. To exploit this flaw, an attacker needs to trick a user into running grub2 with a specially crafted HFS file system image, limiting the…

    Affected products in this advisory
    No product details extracted. Check the source bulletin.
    Source-reported affected versions
    Affected-version details not available in this record.
    Source-reported fixed versions
    No fixed-version detail extracted. This does not mean no fix exists.
    Mitigation guidance
    • Do not run grub2 in an untrusted environment, specifically with a HFS file system image.

References

Timeline

  1. CVE record published
  2. First vendor advisory listed by VulniPulse
  3. CVE record last updated

All NetApp advisories

Get an email when NetApp publishes the next one.

See NetApp's last 90 days first. Live alerts for one product are free for life; every vendor is US$15 a month after a free month.

Alert me about NetApp