Skip to main content
← All vulnerabilities
CVE-2026-45915

fat: avoid parent link count underflow in rmdir

Published
Last modified
published
Not listed in CISA KEV
None on Exploit-DB, Metasploit or GitHub

Summary

In the Linux kernel, the following vulnerability has been resolved: fat: avoid parent link count underflow in rmdir Corrupted FAT images can leave a directory inode with an incorrect i_nlink (e.g. 2 even though subdirectories exist). rmdir then unconditionally calls drop_nlink(dir) and can drive i_nlink to 0, triggering the WARN_ON in drop_nlink(). Add a sanity check in vfat_rmdir() and msdos_rmdir(): only drop the parent link count when it is at least 3, otherwise report a filesystem error.

Timeline

  1. CVE published

Affected versions

  • Linux Linux

    Version range not reported

  • Linux Linux

    2.6.19

References 8

git.kernel.org