# CVE-2025-71292: jfs: nlink overflow in jfs_rename

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 28% of CVEs (2026-11-30)
- Published: 2026-05-06T11:32:23.897Z
- Modified: 2026-10-14T13:10:00.187Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

jfs: nlink overflow in jfs_rename

If nlink is maximal for a directory (-1) and inside that directory you
perform a rename for some child directory (not moving from the parent),
then the nlink of the first directory is first incremented and later
decremented. Normally this is fine, but when nlink = -1 this causes a
wrap around to 0, and then drop_nlink issues a warning.

After applying the patch syzbot no longer issues any warnings. I also
ran some basic fs tests to look for any regressions.

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 2108829a59f081e822fdab8c2cd7131deb8aa8a1; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before b4330a0d0947fbdc9d445cbbeabd8cc910a8c9ca; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before a3d66089e50a6e0142f8884471f74292102ea9aa; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before f70fcbc2ac7c24f087a2c895c5753aa730b1e479; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 5d77c36cd4b698649f5c30c5f6c084f4f61d1880; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before fe136426e30ca6debcf916fd6a141555ed9fde74; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 93c325746ae59709b4f9bad4e3e4761c8d566c70; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 9218dc26fd922b09858ecd3666ed57dfd8098da8; 2.6.12 (not affected: before 2.6.12; from 5.10.252 up to 5.10.*; from 5.15.202 up to 5.15.*; from 6.1.165 up to 6.1.*; from 6.6.128 up to 6.6.*; from 6.12.75 up to 6.12.*; from 6.18.16 up to 6.18.*; from 6.19.6 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 2.6.12.1 before 5.10.252; from 5.11 before 5.15.202; from 5.16 before 6.1.165; from 6.2 before 6.6.128; from 6.7 before 6.12.75; from 6.13 before 6.18.16; from 6.19 before 6.19.6; 2.6.12

## Every score

- Linux: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/2108829a59f081e822fdab8c2cd7131deb8aa8a1> (patch)
- <https://git.kernel.org/stable/c/b4330a0d0947fbdc9d445cbbeabd8cc910a8c9ca> (patch)
- <https://git.kernel.org/stable/c/a3d66089e50a6e0142f8884471f74292102ea9aa> (patch)
- <https://git.kernel.org/stable/c/f70fcbc2ac7c24f087a2c895c5753aa730b1e479> (patch)
- <https://git.kernel.org/stable/c/5d77c36cd4b698649f5c30c5f6c084f4f61d1880> (patch)
- <https://git.kernel.org/stable/c/fe136426e30ca6debcf916fd6a141555ed9fde74> (patch)
- <https://git.kernel.org/stable/c/93c325746ae59709b4f9bad4e3e4761c8d566c70> (patch)
- <https://git.kernel.org/stable/c/9218dc26fd922b09858ecd3666ed57dfd8098da8> (patch)

## Sources

- CVE List: [CVE-2025-71292](https://www.cve.org/CVERecord?id=CVE-2025-71292), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-71292](https://nvd.nist.gov/vuln/detail/CVE-2025-71292), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2025-71292 · Whole record: https://cve.day/CVE-2025-71292.json · Rebuilt by cve.day 2026-11-25T22:59:12.141Z
