CVE-2026-45915

fat: avoid parent link count underflow in rmdir

State
Published
Severity
Not scored
Published
May 27, 2026
Updated
May 27, 2026
Reserved
May 13, 2026

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 9a53c3a783c2fa9b969628e65695c11c3e51e673 to before 7fe0de287e931e07cb96ecf1f449b2ebdb0e1115Affected
  • 9a53c3a783c2fa9b969628e65695c11c3e51e673 to before 9894c79fd9466612d0514be157b5c30cd93aa645Affected
  • 9a53c3a783c2fa9b969628e65695c11c3e51e673 to before cd569b87378b9c33ae13c23d6bb9d205d66f7c4bAffected
  • 9a53c3a783c2fa9b969628e65695c11c3e51e673 to before d3b7ffa90f613938128432c7b2f35b7aa4bdd86bAffected
  • 9a53c3a783c2fa9b969628e65695c11c3e51e673 to before 955c5d670b5ae07c78f4345e23a895638db96ce1Affected
  • 9a53c3a783c2fa9b969628e65695c11c3e51e673 to before 17866f8a0822d414cb02e621cf003a7d04396ef8Affected
  • 9a53c3a783c2fa9b969628e65695c11c3e51e673 to before d0bb592fa9def2bace90ac8926c0a1d6fa8c1aa0Affected
  • 9a53c3a783c2fa9b969628e65695c11c3e51e673 to before 8cafcb881364af5ef3a8b9fed4db254054033d8aAffected
LinuxLinux
  • 2.6.19Affected
  • before 2.6.19Not affected
  • 5.10.252 through 5.10.*Not affected
  • 5.15.202 through 5.15.*Not affected
  • 6.1.165 through 6.1.*Not affected
  • 6.6.128 through 6.6.*Not affected
  • 6.12.75 through 6.12.*Not affected
  • 6.18.14 through 6.18.*Not affected
  • 6.19.4 through 6.19.*Not affected
  • 7.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.