Grub2: ufs: integer overflow may lead to heap based out-of-bounds write when handling symlinks
Key facts
- Attack vector
- Local
- Privileges required
- High
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 2 fixed, 3 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-787 and the CVSS impact.
Summary
A flaw was found in grub2. When performing a symlink lookup, the grub's UFS module checks the inode's data size to allocate the internal buffer to read the file content, however, it fails to check if the symlink data size has overflown. When this occurs, grub_malloc() may be called with a smaller value than needed. When further reading the data from the disk into the buffer, the grub_ufs_lookup_symlink() function will write past the end of the allocated size. An attack can leverage this by crafting a malicious filesystem, and as a result, it will corrupt data stored in the heap, allowing for arbitrary code execution used to by-pass secure boot mechanisms.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | grub2 | up to 2.12 | — | No fix listed | CNA |
| Red Hat | Red Hat Enterprise Linux 10 | — | 1:2.12-15.el10_0 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 9 | — | 1:2.06-104.el9_6 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 7 | — | — | No fix listed | CNA |
| Red Hat | Red Hat Enterprise Linux 8 | — | — | No fix listed | CNA |
| Red Hat | Red Hat OpenShift Container Platform 4 | — | — | No fix listed | CNA |
- grub2 Vendor— Affected up to 2.12 Fixed in — No fix listed CNA
- Red Hat Enterprise Linux 10 VendorRed Hat Affected — Fixed in 1:2.12-15.el10_0 Patch available CNA
- Red Hat Enterprise Linux 9 VendorRed Hat Affected — Fixed in 1:2.06-104.el9_6 Patch available CNA
- Red Hat Enterprise Linux 7 VendorRed Hat Affected — Fixed in — No fix listed CNA
- Red Hat Enterprise Linux 8 VendorRed Hat Affected — Fixed in — No fix listed CNA
- Red Hat OpenShift Container Platform 4 VendorRed Hat Affected — Fixed in — No fix listed CNA
Remediation
Red Hat 2 advisories
- RHSA-2025:16154 Released 2025-09-18 · Red Hat rating Moderategrub2 security update
- Red Hat Enterprise Linux BaseOS (v. 10) grub2-1:2.12-15.el10_0, grub2-common-1:2.12-15.el10_0, grub2-efi-aa64-1:2.12-15.el10_0 +13
- RHSA-2025:6990 Released 2025-05-13 · Red Hat rating Moderategrub2 security update
- Red Hat Enterprise Linux BaseOS (v. 9) grub2-1:2.06-104.el9_6, grub2-common-1:2.06-104.el9_6, grub2-efi-aa64-1:2.06-104.el9_6 +13
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 7 and 3 more products — RHSA-2025:6990
8 records Highest priority Priority LOW 8 LOW
Other records, highest priority first
- TI-2025-00584 Grub2: read: integer overflow may lead to out-of-bounds writePriority LOW 31
- TI-2024-30748 Grub2: fs/ufs: oob write in the heapPriority LOW 31
- TI-2024-30743 Grub2: grub-core/gettext: integer overflow leads to heap oob write and read.Priority LOW 31
- Advisory ·
Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 7 and 3 more products — RHSA-2025:16154
5 records Highest priority Priority LOW 5 LOW
Other records, highest priority first
- TI-2024-30748 Grub2: fs/ufs: oob write in the heapPriority LOW 31
- TI-2024-30743 Grub2: grub-core/gettext: integer overflow leads to heap oob write and read.Priority LOW 31
- TI-2025-00523 Grub2: command/gpg: use-after-free due to hooks not being removed on module unloadPriority LOW 30
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 8 | Affected | No fix planned: Out of support scope |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux BaseOS (v. 10) | Fixed | RHSA-2025:16154 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2025:6990 |
Timeline
- 2026-10-02 Threatist record created from CVE-2025-0677
- 2026-10-03 Alias added: GHSA-h592-gmp8-rvr7
- 2026-10-21 Affected versions changed · CNA
- 2026-10-21 Affected versions changed · Red Hat
- 2026-10-21 Affected versions changed · CNA
- 2026-10-22 Affected versions changed · Red Hat
References
More Red Hat vulnerabilities
- TI-2019-15875 Protection mechanism failure in Jenkins Pipeline: Groovy Plugin KEVCVSS 3.1CRITICAL 9.9
- TI-2019-15874 Protection mechanism failure in Jenkins Script Security Plugin KEVCVSS 3.1CRITICAL 9.9
- TI-2019-08259 Underflow in PHP-FPM can lead to RCE KEVCVSS 3.1CRITICAL 9.8
- TI-2019-05363 Code injection in Elastic Kibana KEVCVSS 3.1CRITICAL 10.0
- TI-2019-03949 Out-of-bounds write in ESXi and Horizon DaaS KEVCVSS 3.1CRITICAL 9.8
- TI-2018-16080 A code execution vulnerability exists in the Stapler web framework used by Jenkins 2.153… KEVCVSS 3.1CRITICAL 9.8
Sources
- CVE-2025-0677 · CVE Program
- CVE-2025-0677 · NVD
- FIRST EPSS
- GHSA-h592-gmp8-rvr7 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-0677 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences