Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 911662931F2 for ; Sat, 15 Aug 2026 06:16:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774593; cv=none; b=X4lLp9Cw/rBWg0PWxk9E0JDpWX1Pefb2731aLt3FbrKiG7oEWKuu41Rj/F2iWFvvjqxqPQIIoMFkKXEII/f2oGV7np36DhSI/BlDrNcnVk5x54nyOLTtO8SwU2T5l3BqjBeWfqydx/LLjn6GlQZlNOC0WMu6dw4MmrDVlZEYPhc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774593; c=relaxed/simple; bh=bnY4/wyuE+LmxYEcHB2u4y7B9gtCTfDwH4Q8Jgm79Uo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jboM12JJM1cGyyR7qtVwFS+qr1advi3Bmf0oxzVS/MPyU+Zd1JNvNbJ7QZjDeyC7z+BHZyVkw/XQKJdoMgrrfDwFaFVLhK4TS/wc3XT7nio9qge4mkLGilMzWBWgTNneKxDkzZ9XF+Y7553056QTMzCFgOiEoovwlhvxZ9O5JVA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YkhHDOAG; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="YkhHDOAG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC5731F000E9; Sat, 15 Aug 2026 06:16:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774592; bh=N9t8CM+8YwUsEY/12aRpXU7VFksN+UmC/kRB5IJc1zI=; h=From:To:Cc:Subject:Date:Reply-To; b=YkhHDOAGJSAw9eYcxi9GCvTAsSX+pXx1+hjsmJ0JRktHTwNWu0YZ3mNbyuCGJx2rQ dlmq86thAXm7JlGbMzgBOVAFINgAhLX5MTG228ca+qcYKsfaBL+LainiblXS5bQrAu 2u7gkHU3lmZIwYynPklXH+hg2g4yLZ/cu2LyMgN4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72170: 9p: skip nlink update in cacheless mode to fix WARN_ON Date: Sat, 15 Aug 2026 15:04:09 +0900 Message-ID: <2026081537-CVE-2026-72170-fe51@gregkh> X-Mailer: git-send-email 2.55.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=3794; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mIzjqOq8wT+LeLymd17DhdYrCAn3oCz6LAT2p6x7R24=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDIfMHW4cfJDvfTuq2VX6UbWWnkmO36btgRmHD9sr1 lVmfA3qiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIkUNjDMjzneto7/4lKm76XM Po8+KFxNEVP9xDBX6oS+l3vxnBc7ds+yP7GQ/ZqozOHtAA== 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: 9p: skip nlink update in cacheless mode to fix WARN_ON v9fs_dec_count() unconditionally calls drop_nlink() on regular files, even when the inode's nlink is already zero. In cacheless mode the client refetches inode metadata from the server (the source of truth) on every operation, so by the time v9fs_remove() returns, the locally cached nlink may already reflect the post-unlink value: 1. Client initiates unlink, server processes it and sets nlink to 0 2. Client refetches inode metadata (nlink=0) before unlink returns 3. Client's v9fs_remove() completes successfully 4. Client calls v9fs_dec_count() which calls drop_nlink() on nlink=0 This race is easily triggered under heavy unlink workloads, such as stress-ng's unlink stressor, producing the following warning: WARNING: fs/inode.c:417 at drop_nlink+0x4c/0xc8 Call trace: drop_nlink+0x4c/0xc8 v9fs_remove+0x1e0/0x250 [9p] v9fs_vfs_unlink+0x20/0x38 [9p] vfs_unlink+0x13c/0x258 ... In cacheless mode the server is authoritative and the inode is on its way out, so locally adjusting nlink buys nothing. Skip v9fs_dec_count() entirely when neither CACHE_META nor CACHE_LOOSE is set, which both avoids the warning and removes a class of nlink races (two concurrent unlinkers observing nlink > 0 and both calling drop_nlink()) that an nlink == 0 guard alone would only narrow rather than close. The Linux kernel CVE team has assigned CVE-2026-72170 to this issue. Affected and fixed versions =========================== Issue introduced in 4.17 with commit ac89b2ef9b55924bcf922251f043ba73a32d05bb and fixed in 6.6.145 with commit a5a682b016ef5b5384e28f6d652d47a8f8e73d37 Issue introduced in 4.17 with commit ac89b2ef9b55924bcf922251f043ba73a32d05bb and fixed in 6.12.97 with commit de79c3f3643841b8659a71958df7cf2a66bfd409 Issue introduced in 4.17 with commit ac89b2ef9b55924bcf922251f043ba73a32d05bb and fixed in 6.18.40 with commit 8d610017c992de705b304d3d727a6e3a86af6149 Issue introduced in 4.17 with commit ac89b2ef9b55924bcf922251f043ba73a32d05bb and fixed in 7.1.5 with commit 8faccac11e1369adddf5d80f4a45af93f13b2e1a Issue introduced in 4.17 with commit ac89b2ef9b55924bcf922251f043ba73a32d05bb and fixed in 7.2-rc1 with commit 574aa0b4799470ac814479f1138d19efe6262255 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-2026-72170 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/9p/vfs_inode.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/a5a682b016ef5b5384e28f6d652d47a8f8e73d37 https://git.kernel.org/stable/c/de79c3f3643841b8659a71958df7cf2a66bfd409 https://git.kernel.org/stable/c/8d610017c992de705b304d3d727a6e3a86af6149 https://git.kernel.org/stable/c/8faccac11e1369adddf5d80f4a45af93f13b2e1a https://git.kernel.org/stable/c/574aa0b4799470ac814479f1138d19efe6262255