CVE-2026-53398: NFSD: Fix SECINFO_NO_NAME decode error cleanup
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
NFSD: Fix SECINFO_NO_NAME decode error cleanup
nfsd4_decode_secinfo_no_name() currently initializes sin_exp after decoding sin_style. If the XDR stream is truncated, the decoder returns nfserr_bad_xdr before sin_exp is initialized.
Since commit 3fdc54646234 ("NFSD: Reduce amount of struct nfsd4_compoundargs that needs clearing"), the inline iops array is not cleared between RPC calls. A failed SECINFO_NO_NAME decode can therefore leave sin_exp holding stale union contents from a previous operation.
The error response path still invokes nfsd4_secinfo_no_name_release(), which calls exp_put() on a non-NULL sin_exp.
Initialize sin_exp before the first failable decode step, matching nfsd4_decode_secinfo().
The Linux kernel CVE team has assigned CVE-2026-53398 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.10.220 with commit 5e76b25d7cc82c148d391c0c43b884e6427cb302 and fixed in 5.10.260 with commit 8836405abdc53ca3dd5fc68b2cf6f8f012fad011 Issue introduced in 5.15.154 with commit 07b68ff5c71cf4ed5443016d8eb116863c0a4d88 and fixed in 5.15.211 with commit 49de5d31dd8fdebf78bdeaf196b0ca5cd5c75439 Issue introduced in 6.1 with commit 3fdc546462348b8a497c72bc894e0cde9f10fc40 and fixed in 6.1.177 with commit 5ec37edcb534f3fc92304be236d37f08e6545585 Issue introduced in 6.1 with commit 3fdc546462348b8a497c72bc894e0cde9f10fc40 and fixed in 6.6.144 with commit 1e04be34cafae119e82bcaccd6d28a20f72a3647 Issue introduced in 6.1 with commit 3fdc546462348b8a497c72bc894e0cde9f10fc40 and fixed in 6.12.95 with commit 161d1aaeb04d620d3692639700512bb5038c1e10 Issue introduced in 6.1 with commit 3fdc546462348b8a497c72bc894e0cde9f10fc40 and fixed in 6.18.38 with commit c8a24effd96d4779e2ad779654682304491c55a5 Issue introduced in 6.1 with commit 3fdc546462348b8a497c72bc894e0cde9f10fc40 and fixed in 7.1.3 with commit 46eb17d45be69d28c7a23ea03283b207426a8232 Issue introduced in 6.1 with commit 3fdc546462348b8a497c72bc894e0cde9f10fc40 and fixed in 7.2-rc1 with commit 9e18e83b8846a5c3fe13fc8a464b4865d33996c6
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-53398
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/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/8836405abdc53ca3dd5fc68b2cf6f8f012fad011 https://git.kernel.org/stable/c/49de5d31dd8fdebf78bdeaf196b0ca5cd5c75439 https://git.kernel.org/stable/c/5ec37edcb534f3fc92304be236d37f08e6545585 https://git.kernel.org/stable/c/1e04be34cafae119e82bcaccd6d28a20f72a3647 https://git.kernel.org/stable/c/161d1aaeb04d620d3692639700512bb5038c1e10 https://git.kernel.org/stable/c/c8a24effd96d4779e2ad779654682304491c55a5 https://git.kernel.org/stable/c/46eb17d45be69d28c7a23ea03283b207426a8232 https://git.kernel.org/stable/c/9e18e83b8846a5c3fe13fc8a464b4865d33996c6