CVE-2026-74330: configfs: fix lockless traversals of ->s_children
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
configfs: fix lockless traversals of ->s_children
Having the parent directory locked protects entries from removal by another thread, but it does *not* protect cursors from being moved around by lseek() - or freed, for that matter.
The Linux kernel CVE team has assigned CVE-2026-74330 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.27 with commit 6f61076406251626be39651d114fac412b1e0c39 and fixed in 5.10.261 with commit 77fd6f50f633a52c2db061e7d71d8cb486b0265e Issue introduced in 2.6.27 with commit 6f61076406251626be39651d114fac412b1e0c39 and fixed in 5.15.212 with commit 91f289728ec706b7ff1ca0ee845dd73ff2253488 Issue introduced in 2.6.27 with commit 6f61076406251626be39651d114fac412b1e0c39 and fixed in 6.1.178 with commit b166ab78dc3f48e83d2c80bdfde4159b31fdc5fb Issue introduced in 2.6.27 with commit 6f61076406251626be39651d114fac412b1e0c39 and fixed in 6.6.145 with commit 9e57e2863872e82e7c7237bc32299f67ebebc543 Issue introduced in 2.6.27 with commit 6f61076406251626be39651d114fac412b1e0c39 and fixed in 6.12.97 with commit 459860529c109c5ce08b81c0776ca1200eaaeb4a Issue introduced in 2.6.27 with commit 6f61076406251626be39651d114fac412b1e0c39 and fixed in 6.18.40 with commit 637ef4961470e04455102b34ac484a34d8eca0a4 Issue introduced in 2.6.27 with commit 6f61076406251626be39651d114fac412b1e0c39 and fixed in 7.1.5 with commit e6d93108e0a27d7e6f95c7e45017d14ba2900d32 Issue introduced in 2.6.27 with commit 6f61076406251626be39651d114fac412b1e0c39 and fixed in 7.2-rc1 with commit 9b9e8bb81c41fd27e7b57a1c936fde140548535f
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-74330
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/configfs/dir.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/77fd6f50f633a52c2db061e7d71d8cb486b0265e https://git.kernel.org/stable/c/91f289728ec706b7ff1ca0ee845dd73ff2253488 https://git.kernel.org/stable/c/b166ab78dc3f48e83d2c80bdfde4159b31fdc5fb https://git.kernel.org/stable/c/9e57e2863872e82e7c7237bc32299f67ebebc543 https://git.kernel.org/stable/c/459860529c109c5ce08b81c0776ca1200eaaeb4a https://git.kernel.org/stable/c/637ef4961470e04455102b34ac484a34d8eca0a4 https://git.kernel.org/stable/c/e6d93108e0a27d7e6f95c7e45017d14ba2900d32 https://git.kernel.org/stable/c/9b9e8bb81c41fd27e7b57a1c936fde140548535f