CVE-2026-93207: SUNRPC: Zero rpc_gss_wire_cred at svcauth_gss_decode_credbody() entry
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
SUNRPC: Zero rpc_gss_wire_cred at svcauth_gss_decode_credbody() entry
svcauth_gss_decode_credbody() writes the caller's rpc_gss_wire_cred field by field and assigns gc_ctx.len only on the success tail. The caller storage is svcdata->clcred, which lives in the per-svc_rqst gss_svc_data and is reused across requests. Early decode failures leave partially decoded state mixed with residue from the prior request.
The trailing body_len tightness check is the sharpest case:xdr_stream_decode_opaque_inline() has already written gc_ctx.data with a borrowed inline pointer into the current request's XDR pages, but gc_ctx.len retains its prior value. Once the request pages are released the pooled clcred carries a dangling pointer paired with a stale length.
Zero the caller's rpc_gss_wire_cred at function entry so that every early-return path leaves a deterministic all-zero cred. On the trailing tightness-check path, gc_ctx.len is now zero instead of stale, which neuters length-driven consumers such as gss_svc_searchbyctx() that would otherwise walk the dangling data pointer.
The Linux kernel CVE team has assigned CVE-2026-93207 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.3 with commit b0bc53470d1af01f62a0fe2d405cf56477804863 and fixed in 6.6.157 with commit 56b29d62017c7dd1718d060dd5b3a2ce61095d0c Issue introduced in 6.3 with commit b0bc53470d1af01f62a0fe2d405cf56477804863 and fixed in 6.12.109 with commit 0e18641708eaa8bc3c1ff338cd844aeadbd52bac Issue introduced in 6.3 with commit b0bc53470d1af01f62a0fe2d405cf56477804863 and fixed in 6.18.50 with commit e0778464049b0238f2915a40007a4154f86cf351 Issue introduced in 6.3 with commit b0bc53470d1af01f62a0fe2d405cf56477804863 and fixed in 7.2.4 with commit 0fa8a8acae57e6373962741d5b06d13f44aba6a9 Issue introduced in 6.3 with commit b0bc53470d1af01f62a0fe2d405cf56477804863 and fixed in 7.3-rc1 with commit 11539e8fcce0b0af062ae5fecf7b3676c2f7aeed
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-93207
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:
net/sunrpc/auth_gss/svcauth_gss.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/56b29d62017c7dd1718d060dd5b3a2ce61095d0c https://git.kernel.org/stable/c/0e18641708eaa8bc3c1ff338cd844aeadbd52bac https://git.kernel.org/stable/c/e0778464049b0238f2915a40007a4154f86cf351 https://git.kernel.org/stable/c/0fa8a8acae57e6373962741d5b06d13f44aba6a9 https://git.kernel.org/stable/c/11539e8fcce0b0af062ae5fecf7b3676c2f7aeed