CVE-2025-0677: Grub2: ufs: integer overflow may lead to heap based out-of-bounds write when handling symlinks
Vulnerability summary
CVE-2025-0677 is a medium (CVSS 6.4) Out-of-bounds Write vulnerability in grub2. EPSS estimates a 0.33% chance of exploitation in the next 30 days, higher than 28% of scored vulnerabilities.
Not severe (CVSS 6.4, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 12 · Related 9Timeline
- 19-02-2025PublishedVulnerability first disclosed.
- 24-11-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated6.4MediumCVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated6.4MediumCVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
- NVDNIST6.4MediumCVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.33%
Chance of exploitation in the next 30 days
Percentile
28%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.33% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu3 products
- grub2All versions (No fix recorded)
- grub2-signedAll versions (No fix recorded)
- grub2-unsignedAll versions (No fix recorded)
Debian1 product
- grub2< 2.06-13+deb12u2 | < 2.12-6
2 vendors · 4 products