{"id":"CVE-2025-71292","state":"PUBLISHED","title":"jfs: nlink overflow in jfs_rename","description":"In the Linux kernel, the following vulnerability has been resolved:\n\njfs: nlink overflow in jfs_rename\n\nIf nlink is maximal for a directory (-1) and inside that directory you\nperform a rename for some child directory (not moving from the parent),\nthen the nlink of the first directory is first incremented and later\ndecremented. Normally this is fine, but when nlink = -1 this causes a\nwrap around to 0, and then drop_nlink issues a warning.\n\nAfter applying the patch syzbot no longer issues any warnings. I also\nran some basic fs tests to look for any regressions.","publishedAt":"2026-05-06T11:32:23.897Z","updatedAt":"2026-08-05T12:12:42.348Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"2108829a59f081e822fdab8c2cd7131deb8aa8a1","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"b4330a0d0947fbdc9d445cbbeabd8cc910a8c9ca","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"a3d66089e50a6e0142f8884471f74292102ea9aa","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"f70fcbc2ac7c24f087a2c895c5753aa730b1e479","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"5d77c36cd4b698649f5c30c5f6c084f4f61d1880","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"fe136426e30ca6debcf916fd6a141555ed9fde74","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"93c325746ae59709b4f9bad4e3e4761c8d566c70","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"9218dc26fd922b09858ecd3666ed57dfd8098da8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/jfs/namei.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"5.10.252","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.202","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.165","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.128","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.75","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.16","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.6","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/jfs/namei.c"]}],"references":["https://git.kernel.org/stable/c/2108829a59f081e822fdab8c2cd7131deb8aa8a1","https://git.kernel.org/stable/c/b4330a0d0947fbdc9d445cbbeabd8cc910a8c9ca","https://git.kernel.org/stable/c/a3d66089e50a6e0142f8884471f74292102ea9aa","https://git.kernel.org/stable/c/f70fcbc2ac7c24f087a2c895c5753aa730b1e479","https://git.kernel.org/stable/c/5d77c36cd4b698649f5c30c5f6c084f4f61d1880","https://git.kernel.org/stable/c/fe136426e30ca6debcf916fd6a141555ed9fde74","https://git.kernel.org/stable/c/93c325746ae59709b4f9bad4e3e4761c8d566c70","https://git.kernel.org/stable/c/9218dc26fd922b09858ecd3666ed57dfd8098da8"],"weaknesses":[],"ingestedAt":"2026-10-29T20:10:04.440Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/71xxx/CVE-2025-71292.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-71292","state":"PUBLISHED","datePublished":"2026-05-06T11:32:23.897Z","dateUpdated":"2026-08-05T12:12:42.348Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-05-06T11:31:45.509Z"},"containers":{"cna":{"title":"jfs: nlink overflow in jfs_rename","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\njfs: nlink overflow in jfs_rename\n\nIf nlink is maximal for a directory (-1) and inside that directory you\nperform a rename for some child directory (not moving from the parent),\nthen the nlink of the first directory is first incremented and later\ndecremented. Normally this is fine, but when nlink = -1 this causes a\nwrap around to 0, and then drop_nlink issues a warning.\n\nAfter applying the patch syzbot no longer issues any warnings. I also\nran some basic fs tests to look for any regressions."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"2108829a59f081e822fdab8c2cd7131deb8aa8a1","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"b4330a0d0947fbdc9d445cbbeabd8cc910a8c9ca","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"a3d66089e50a6e0142f8884471f74292102ea9aa","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"f70fcbc2ac7c24f087a2c895c5753aa730b1e479","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"5d77c36cd4b698649f5c30c5f6c084f4f61d1880","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"fe136426e30ca6debcf916fd6a141555ed9fde74","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"93c325746ae59709b4f9bad4e3e4761c8d566c70","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"9218dc26fd922b09858ecd3666ed57dfd8098da8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/jfs/namei.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"5.10.252","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.202","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.165","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.128","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.75","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.16","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.6","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/jfs/namei.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/2108829a59f081e822fdab8c2cd7131deb8aa8a1"},{"url":"https://git.kernel.org/stable/c/b4330a0d0947fbdc9d445cbbeabd8cc910a8c9ca"},{"url":"https://git.kernel.org/stable/c/a3d66089e50a6e0142f8884471f74292102ea9aa"},{"url":"https://git.kernel.org/stable/c/f70fcbc2ac7c24f087a2c895c5753aa730b1e479"},{"url":"https://git.kernel.org/stable/c/5d77c36cd4b698649f5c30c5f6c084f4f61d1880"},{"url":"https://git.kernel.org/stable/c/fe136426e30ca6debcf916fd6a141555ed9fde74"},{"url":"https://git.kernel.org/stable/c/93c325746ae59709b4f9bad4e3e4761c8d566c70"},{"url":"https://git.kernel.org/stable/c/9218dc26fd922b09858ecd3666ed57dfd8098da8"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - An NFSv3/v4 RENAME on an exported JFS directory follows SunRPC dispatch through nfsd_rename and vfs_rename into jfs_rename. Thus a remote NFS client can reach the vulnerable code.\nAC:L - With the parent nlink at 0xffffffff, one same-parent directory rename deterministically triggers the wrap and warning. No race is required, and the filesystem state can be attacker-controlled.\nPR:N - A writable NFS export permitting anonymous or AUTH_NULL access requires no account or prior privileges. nfsd's export and directory permission checks still permit the operation when the anonymous identity has write access.\nUI:N - The attacker directly submits the RENAME operation after the affected filesystem state exists. No separate victim action is required in an already mounted and exported JFS deployment.\nS:U - The warning and resulting denial of service affect the same kernel and host processing the filesystem operation. No virtualization, IOMMU, or other security boundary is crossed.\nC:N - The overflow affects only the unsigned link-count field and does not read or disclose memory. The count is restored before the successful transaction commits.\nI:N - There is no out-of-bounds access, use-after-free, or arbitrary write primitive. On the successful path the transient zero link count is restored to 0xffffffff before metadata is dirtied or committed.\nA:H - The repeatable WARN_ON can panic the kernel when panic_on_warn or an applicable warn_limit is configured. Even without those settings, repeated remote renames can continuously generate expensive warning traces."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:12:42.348Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.10.252"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.15.202"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.1.165"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.6.128"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.12.75"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.18.16"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.19.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}