Directory nlink Overflow in Linux Kernel JFS Implementation
CVE-2025-71292
What is CVE-2025-71292?
A vulnerability in the JFS (Journaled File System) implementation of the Linux kernel could potentially result in an nlink overflow when renaming directories under specific conditions. If the nlink count for a directory reaches the maximum value (-1) and a rename operation occurs on a child directory without moving it from the parent, the process of incrementing and then decrementing the nlink can lead to wraparound, resulting in an incorrect nlink value of 0. This erroneous condition triggers warnings during operations. After addressing this issue with a patch, the system no longer produces warnings, indicating that it has been effectively resolved and basic file system tests show no regressions.
Affected Version(s)
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 2108829a59f081e822fdab8c2cd7131deb8aa8a1
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2