From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 376A743CEEB for ; Wed, 6 May 2026 11:36:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067388; cv=none; b=tUsINqKCPN3FUg1vwdzMuaaDBbiLs3ic3/gC7GGfwGy7rSIaRn3ExgMiEsTl+oROYsMhOHGxBiUSdfShTDctHy3NG7rZM+zLuJMvfdI+79LQmvCbKVNn1AlibXA01IAOecpsXTVRk2XBMNCiIXlZ8uEZWugARpV7zw1UxpVM7UI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067388; c=relaxed/simple; bh=U8n2NhfAHFnNSH+U126Mh+7y8AQoAYdPRMFqGw2V4Ps=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=C3jcmkQD2r4gPCP+G8t2Ch1Uawz7CSskICipgDHSISy/95S4E7yru/mwO3Hrh3hEYQpn5PiIrdqu/dh5zxlNmFutgoYpHmRKNmfX4Rt3bBkXij6GCcxvy9LA4PyHWtHeK9B0LSVLpM/AOfZR3JTqmOBxMloCGpT43EvtiChcKzI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NhpSajwR; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="NhpSajwR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF62BC2BCB8; Wed, 6 May 2026 11:36:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778067388; bh=U8n2NhfAHFnNSH+U126Mh+7y8AQoAYdPRMFqGw2V4Ps=; h=From:To:Cc:Subject:Date:Reply-To:From; b=NhpSajwR4sk15rcMrq9+EzaSCT73CUHfBtyoeMK9sebyF730BTqD9pdv1i/cgEWIf Sn9eApEMXknLHnEs/2Y/IskIzwPsOCowEyPnb1PvahbDMNZ1B0Bc756lB/uvU0jVBW T4S0RY9dneWV6DS5QVx8eoWsqVSRywLZpTcxhQvM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71292: jfs: nlink overflow in jfs_rename Date: Wed, 6 May 2026 13:32:37 +0200 Message-ID: <2026050632-CVE-2025-71292-9638@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2918; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dEGDJiOwCry6VS65Jsno9k91O3xx0vyYOacuFh6APWU=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/1S60f9TIZMrNaHqodHBJW48Te/hH1sy6f05GNxrXb lQ/VBbXEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNJjWeYH8EgyPpZS2ntYTOr 0/NfRFz4XrhYgmF+yobN0sVh6xitmBZq3pXlLKtvYNcDAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2025-71292 to this issue. Affected and fixed versions =========================== Fixed in 5.10.252 with commit 2108829a59f081e822fdab8c2cd7131deb8aa8a1 Fixed in 5.15.202 with commit b4330a0d0947fbdc9d445cbbeabd8cc910a8c9ca Fixed in 6.1.165 with commit a3d66089e50a6e0142f8884471f74292102ea9aa Fixed in 6.6.128 with commit f70fcbc2ac7c24f087a2c895c5753aa730b1e479 Fixed in 6.12.75 with commit 5d77c36cd4b698649f5c30c5f6c084f4f61d1880 Fixed in 6.18.16 with commit fe136426e30ca6debcf916fd6a141555ed9fde74 Fixed in 6.19.6 with commit 93c325746ae59709b4f9bad4e3e4761c8d566c70 Fixed in 7.0 with commit 9218dc26fd922b09858ecd3666ed57dfd8098da8 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2025-71292 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/jfs/namei.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: 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