CVE-2026-72372: afs: Fix lack of locking around modifications of net->cells_dyn_ino
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
afs: Fix lack of locking around modifications of net->cells_dyn_ino
Fix the lack of locking around modifications of net->cells_dyn_ino by taking net->cells_lock exclusively. This also requires to cell to be removed from net->cells_dyn_ino in afs_destroy_cell_work() rather than in afs_cell_destroy() as the latter runs in RCU cleanup context and sleeping locks cannot be taken there.
The Linux kernel CVE team has assigned CVE-2026-72372 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.12.97 with commit 537b0105952578531f748c7fb3ce36ae9a514784 and fixed in 6.12.101 with commit 4d8a2fe8847859f4fa4e9a2fa1221c9c1158e66b Issue introduced in 6.15 with commit 1d0b929fc070b4115403a0a6206a0c6a62dd61f5 and fixed in 6.18.40 with commit 2ffb70a8a01988046bb207b7d0af9358a8337378 Issue introduced in 6.15 with commit 1d0b929fc070b4115403a0a6206a0c6a62dd61f5 and fixed in 7.1.5 with commit e94f92fd56c553a8bf9421c3289e1b85c7c08857 Issue introduced in 6.15 with commit 1d0b929fc070b4115403a0a6206a0c6a62dd61f5 and fixed in 7.2-rc2 with commit 55e841836c6f4646490f7b0347192b7a92d431ba
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-72372
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/afs/cell.c
fs/afs/dynroot.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/4d8a2fe8847859f4fa4e9a2fa1221c9c1158e66b https://git.kernel.org/stable/c/2ffb70a8a01988046bb207b7d0af9358a8337378 https://git.kernel.org/stable/c/e94f92fd56c553a8bf9421c3289e1b85c7c08857 https://git.kernel.org/stable/c/55e841836c6f4646490f7b0347192b7a92d431ba