Logo
vulnerabilityCVE-2025-0677
Name
CVE-2025-0677
Source
NVD ( link)Debian ( link)
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.
Published Date
Updated Date
Workaround
-
Advisories

Analysis#


Affected Component
Analysis
grub
Exploitable

Vulnerability Ratings#


6.4
CVSSv31
NaN
other

Others affected components#


Name
Project
Project Version
Version
Status
buildroot
2025.02.x
2.12
Exploitable
buildroot
master
2.14
Not Affected
openwrt
master
2.12-r1
Exploitable
openwrt
openwrt-25.12
2.12-r1
Exploitable
yocto
master
2.14
Not Affected
yocto
scarthgap
2.12
Exploitable

Resolved with patches#


grub2 (buildroot:2025.02.x)

#
Title
Author
Resolve
1
fs: Disable many filesystems under lockdown
Daniel Axtens <dja@axtens.net>
CVE-2025-0677
CVE-2025-0684
CVE-2025-0685
CVE-2025-0686
CVE-2025-0689