CVE-2025-0677
MediumCVSS 6.4Exploitation Probability (EPSS)
Low risk28th percentile - higher than 28% of all known CVEs
Summary
A flaw was found in grub2's UFS module when handling symbolic links. The function checking symlink data size does not verify overflow, leading to undersized buffer allocation and heap out-of-bounds write. An attacker can craft a malicious filesystem to corrupt heap memory and achieve arbitrary code execution, bypassing Secure Boot.
Risk Assessment
The risk is bypassing Secure Boot and executing unauthorized code during system startup, potentially leading to full machine compromise and persistent boot integrity violation.
Recommendation
Immediately update GRUB2 to a patched version addressing CVE-2025-0677. Prior to update, restrict physical console access and verify GRUB image integrity.
Other vulnerabilities in GRUB2
See all- CVE-2026-92728High
A heap out-of-bounds write flaw in GRUB2's DNS response parser. In recv_hook(), the address array is allocated from the DNS answer count (ancount), but A/AAAA appends across CNAME-triggered reparses do not check capacity. The CNAME cycle detector can lag for non-power-of-two cycle periods, allowing naddresses to exceed ancount and write past the allocated heap buffer during DNS resolution at boot.
- CVE-2026-109907Low
Lack of returning errors in insert_dir in SUSE specific patches to grub2 before 2.12 could be used by physical close attackers to crash the bootloader, and potentially execute code.
- CVE-2026-109906Low
A use-after-free in low memory conditions in grub_cryptokey_add_or_update in SUSE specific grub2 patches before 2.12 could be used by physical local attackers to potentially crash the bootloader or execute code.
- CVE-2026-109905Low
A integer-underflow triggering a heap buffer overflow in set_bli_loader_entries in SUSE patches for grub2 could be used by attackers with broken UEFI entries to cause an endless loop or a crash.
- CVE-2025-61664Medium
A Use After Free vulnerability has been identified in the GRUB2 bootloader's normal module. The flaw occurs because the normal_exit command is not properly unregistered when its module is unloaded. An attacker can invoke the command after module removal, causing access to freed memory.
- CVE-2025-61663Medium
A Use-after-Free vulnerability has been found in the GRUB2 bootloader's 'normal' command. The flaw occurs because the command is not properly unregistered when the module is unloaded, allowing an attacker to access invalid memory locations. Successful exploitation leads to system instability and a complete crash.
- CVE-2025-54770Medium
A Use-after-Free vulnerability has been found in the GRUB2 bootloader's network module. The flaw is caused by improper unregistration of the net_set_vlan command when the module is unloaded from memory. An attacker can exploit this to cause system instability and a complete crash.
- CVE-2025-0686Medium
A flaw in the romfs module of GRUB2 allows integer overflow during buffer size calculation based on user-controlled filesystem geometry parameters. A crafted filesystem can cause a smaller-than-expected buffer allocation, leading to out-of-bounds writes in grub_romfs_read_symlink() and potentially arbitrary code execution.
- CVE-2025-0685Medium
A buffer overflow vulnerability was found in the jfs filesystem module of GRUB2. The grub_jfs_lookup_symlink() function writes beyond the allocated buffer when a specially crafted jfs filesystem is used. This can corrupt critical internal GRUB data and potentially lead to arbitrary code execution.
- CVE-2025-0684Medium
A flaw in GRUB2's reiserfs module allows integer overflow during symlink buffer size calculation, leading to heap out-of-bounds write and potential arbitrary code execution.
Original NVD description (English source)
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.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

