Out-of-bounds Write
CVE-2025-0677
Summary
A flaw was found in grub2. When performing a symlink lookup, 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 overflowed. 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 attacker can leverage this by crafting a malicious filesystem, resulting in corruption of data stored in the heap and allowing arbitrary code execution to bypass secure boot mechanisms.
- HIGH
- LOCAL
- HIGH
- UNCHANGED
- NONE
- HIGH
- HIGH
- HIGH
CWE-787 - Out-of-Bounds Write
Out-of-bounds write vulnerability is a memory access bug that allows software to write data past the end or before the beginning of the intended buffer. This may result in the corruption of data, a crash, or arbitrary code execution.
References
Advisory Timeline
- Published