CVE-2025-71292
JSON

7.5high

jfs: nlink overflow in jfs_rename

Severity
7.5high CVSS:3.1 by Linux
Exploit likelihood
0.43% (higher than 28% of CVEs)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 and 1 more
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.*
CVE List
linux linux_kernelfrom 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.12NVD

All scores

Linux7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: jfs: desbordamiento de nlink en jfs_rename Si nlink es máximo para un directorio (-1) y dentro de ese directorio realizas un renombramiento para algún directorio hijo (sin mover desde el padre), entonces el nlink del primer directorio es primero incrementado y luego decrementado. Normalmente esto está bien, pero cuando nlink = -1 esto causa un desbordamiento a 0, y luego drop_nlink emite una advertencia. Después de aplicar el parche, syzbot ya no emite ninguna advertencia. También ejecuté algunas pruebas básicas de fs para buscar cualquier regresión.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-71292 changed 2026-08-05CVE Terms of Use
NVDCVE-2025-71292 changed 2026-10-14Public domain