# CVE-2025-0677: Grub2: ufs: integer overflow may lead to heap based out-of-bounds write when handling symlinks

- Severity: Medium 6.4 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Published: 2025-02-19T18:23:53.496Z
- Modified: 2026-11-24T07:17:16.880Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- grub2: up to 2.12 (not affected: from 1:2.12-15.el10_0 before *; from 1:2.06-104.el9_6 before *)
- openshift/ose-rhel-coreos-9: no versions given

## References

- <https://access.redhat.com/errata/RHSA-2025:16154> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:6990> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2025-0677> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2346116> (issue-tracking)
- <https://lists.gnu.org/archive/html/grub-devel/2025-02/msg00024.html>

## Sources

- CVE List: [CVE-2025-0677](https://www.cve.org/CVERecord?id=CVE-2025-0677), CVE Terms of Use, modified 2026-11-24
- NVD: [CVE-2025-0677](https://nvd.nist.gov/vuln/detail/CVE-2025-0677), Public domain, modified 2026-11-24

---

Page: https://cve.day/CVE-2025-0677 · Whole record: https://cve.day/CVE-2025-0677.json · Rebuilt by cve.day 2026-11-25T22:58:54.185Z
