Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › News › Web

Advisory Analysis

Three Heap Vulnerabilities in GRUB2 Filesystem Parsers Identified

Three heap out-of-bounds vulnerabilities were discovered in GRUB2's filesystem parsers, impacting nilfs2, f2fs, and erofs modules. A patch was created and tested to resolve all three issues.

WebAI

Key points

  • Three heap out-of-bounds vulnerabilities were identified in GRUB2's nilfs2, f2fs, and erofs modules.
  • The nilfs2 vulnerability could lead to heap metadata corruption and arbitrary write capabilities in a pre-OS environment.
  • A patch was created and tested to resolve all three issues.

Researchers uncovered three heap out-of-bounds vulnerabilities in GRUB2's filesystem parsers, affecting the nilfs2, f2fs, and erofs modules. The nilfs2 flaw results from an integer overflow in the grub_nilfs2_read_symlink function, potentially leading to heap metadata corruption and enabling arbitrary write actions in a pre-OS setting. The f2fs vulnerability, a heap out-of-bounds read, stems from an unbounded copy of a dentry name in grub_f2fs_check_dentries, while the erofs vulnerability is a heap out-of-bounds read in erofs_iterate_dir. These flaws were validated through static analysis and runtime testing using AddressSanitizer. The nilfs2 issue was classified as High with a CVSS score of 7.8, while the f2fs and erofs vulnerabilities were rated as Medium with scores of 5.5 each. These vulnerabilities were not previously addressed in GRUB2 security advisories and were found in the master branch at commit 7aa2860835006cc5df95f84d8d504c2c1fa6a4b5. A fix was developed and tested, effectively resolving all three issues. The vulnerabilities could be triggered by mounting a filesystem under an attacker's control, such as an infected USB drive or a malicious disk image.

What to do

  1. Apply patches promptly when they become available to reduce the risk of exploitation.

Our article, written with AI assistance from the facts of the original report and the official vulnerability data below. Read the original for full details.

Original report

oss-securityseclists.org

“GRUB: 3 heap OOB issues in nilfs2/f2fs/erofs filesystem parsers”

Posted by Solar Designer on Dec 03 Hi, Sakith and/or his AI assistant erroneously sent the below report to the public grub-devel list and the private distros list at once, and also requested an embargo beyond the allowed 14 days maximum. The grub-devel posting appears at: https://lists.gnu.org/archive/html/grub-devel/2026-12/threads.html I also include two of the replies from the distros list thr…

More on this topic