CVE-2026-45983: nfsd: never defer requests during idmap lookup
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
nfsd: never defer requests during idmap lookup
During v4 request compound arg decoding, some ops (e.g. SETATTR) can trigger idmap lookup upcalls. When those upcall responses get delayed beyond the allowed time limit, cache_check() will mark the request for deferral and cause it to be dropped.
This prevents nfs4svc_encode_compoundres from being executed, and thus the session slot flag NFSD4_SLOT_INUSE never gets cleared. Subsequent client requests will fail with NFSERR_JUKEBOX, given that the slot will be marked as in-use, making the SEQUENCE op fail.
Fix this by making sure that the RQ_USEDEFERRAL flag is always clear during nfs4svc_decode_compoundargs(), since no v4 request should ever be deferred.
The Linux kernel CVE team has assigned CVE-2026-45983 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.30 with commit 2f425878b6a71571341dcd3f9e9d1a6f6355da9c and fixed in 5.10.252 with commit b9abb760db20504240a7147f27934d900cd80b23 Issue introduced in 2.6.30 with commit 2f425878b6a71571341dcd3f9e9d1a6f6355da9c and fixed in 5.15.202 with commit 3a72c7dedc99b321e0f267e4e999e5baf07c4593 Issue introduced in 2.6.30 with commit 2f425878b6a71571341dcd3f9e9d1a6f6355da9c and fixed in 6.1.165 with commit 99e17b20fddac19a228d213e00f6b9e1c10daff9 Issue introduced in 2.6.30 with commit 2f425878b6a71571341dcd3f9e9d1a6f6355da9c and fixed in 6.6.128 with commit 243f71ed873ff3feeb6f9b5cb145d63f7188b4c4 Issue introduced in 2.6.30 with commit 2f425878b6a71571341dcd3f9e9d1a6f6355da9c and fixed in 6.12.75 with commit 063a6f22478ef929625000a2caf54667725c1dfd Issue introduced in 2.6.30 with commit 2f425878b6a71571341dcd3f9e9d1a6f6355da9c and fixed in 6.18.14 with commit d75ec4504a4340b033b15cad0303988b3089dd93 Issue introduced in 2.6.30 with commit 2f425878b6a71571341dcd3f9e9d1a6f6355da9c and fixed in 6.19.4 with commit 8dff54fe88c0dcd4c55bff9fc2fa6ca968290826 Issue introduced in 2.6.30 with commit 2f425878b6a71571341dcd3f9e9d1a6f6355da9c and fixed in 7.0 with commit f9c206cdc4266caad6a9a7f46341420a10f03ccb
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-45983
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/nfsd/nfs4idmap.c
fs/nfsd/nfs4proc.c
fs/nfsd/nfs4xdr.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/b9abb760db20504240a7147f27934d900cd80b23 https://git.kernel.org/stable/c/3a72c7dedc99b321e0f267e4e999e5baf07c4593 https://git.kernel.org/stable/c/99e17b20fddac19a228d213e00f6b9e1c10daff9 https://git.kernel.org/stable/c/243f71ed873ff3feeb6f9b5cb145d63f7188b4c4 https://git.kernel.org/stable/c/063a6f22478ef929625000a2caf54667725c1dfd https://git.kernel.org/stable/c/d75ec4504a4340b033b15cad0303988b3089dd93 https://git.kernel.org/stable/c/8dff54fe88c0dcd4c55bff9fc2fa6ca968290826 https://git.kernel.org/stable/c/f9c206cdc4266caad6a9a7f46341420a10f03ccb