---
id: CVE-2025-71292
title: |-
  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…
summary: |-
  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…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 2.6.12.1, < 5.10.252'
  - 'linux_kernel >= 5.11, < 5.15.202'
  - 'linux_kernel >= 5.16, < 6.1.165'
  - 'linux_kernel >= 6.2, < 6.6.128'
  - 'linux_kernel >= 6.7, < 6.12.75'
  - 'linux_kernel >= 6.13, < 6.18.16'
  - 'linux_kernel >= 6.19, < 6.19.6'
  - linux_kernel = 2.6.12
patched:
  - linux_kernel 6.19.6
published: '2026-05-06'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T13:10:00.187'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-71292'
references:
  - url: 'https://git.kernel.org/stable/c/2108829a59f081e822fdab8c2cd7131deb8aa8a1'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/5d77c36cd4b698649f5c30c5f6c084f4f61d1880'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/9218dc26fd922b09858ecd3666ed57dfd8098da8'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/93c325746ae59709b4f9bad4e3e4761c8d566c70'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/a3d66089e50a6e0142f8884471f74292102ea9aa'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/b4330a0d0947fbdc9d445cbbeabd8cc910a8c9ca'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/f70fcbc2ac7c24f087a2c895c5753aa730b1e479'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/fe136426e30ca6debcf916fd6a141555ed9fde74'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
epss: 0.00321
epssPercentile: 0.23361
ingestedAt: '2026-10-14T13:30:58.487Z'
---

## Overview

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

- `linux_kernel >= 2.6.12.1, < 5.10.252`
- `linux_kernel >= 5.11, < 5.15.202`
- `linux_kernel >= 5.16, < 6.1.165`
- `linux_kernel >= 6.2, < 6.6.128`
- `linux_kernel >= 6.7, < 6.12.75`
- `linux_kernel >= 6.13, < 6.18.16`
- `linux_kernel >= 6.19, < 6.19.6`
- `linux_kernel = 2.6.12`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.19.6`
