Skip to contentSkip to conversation

CVE-2026-99352: SUNRPC: trace an accepted transport before publishing it

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

SUNRPC: trace an accepted transport before publishing it

svc_handle_xprt() publishes a newly accepted transport before tracing it. svc_add_new_temp_xprt() places the transport on sv_tempsocks and clears XPT_BUSY, so another nfsd thread can dequeue it at once. If the peer has already closed the connection, that thread runs svc_delete_xprt(), which drops the list reference, the only reference the new transport holds. trace_svc_xprt_accept() then reads the transport's addresses and network namespace from freed memory.

Before publication the accepting thread owns the transport
exclusively: XPT_BUSY is still set from svc_xprt_init() and the transport is on no list. Emit the tracepoint there.

[ cel: trace before publication instead of taking an extra reference ]

The Linux kernel CVE team has assigned CVE-2026-99352 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.8 with commit 11bbb0f76e995cb617f582e7a4ec6cb8f6daf910 and fixed in 6.12.117 with commit 4d20ecd289ede2487ee5a23962fa78fcb47c0500
	Issue introduced in 5.8 with commit 11bbb0f76e995cb617f582e7a4ec6cb8f6daf910 and fixed in 6.18.61 with commit fd7b12865b2078f16406834631c4a68262d28346
	Issue introduced in 5.8 with commit 11bbb0f76e995cb617f582e7a4ec6cb8f6daf910 and fixed in 7.3.2 with commit 86f3078ed2bd6645f5d44fa41917453b774808c1
	Issue introduced in 5.8 with commit 11bbb0f76e995cb617f582e7a4ec6cb8f6daf910 and fixed in 7.4-rc1 with commit 06f90cf104fc21ee01e7ef1eb80e092173089b9f

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-99352

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/svc_xprt.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/4d20ecd289ede2487ee5a23962fa78fcb47c0500
	https://git.kernel.org/stable/c/fd7b12865b2078f16406834631c4a68262d28346
	https://git.kernel.org/stable/c/86f3078ed2bd6645f5d44fa41917453b774808c1
	https://git.kernel.org/stable/c/06f90cf104fc21ee01e7ef1eb80e092173089b9f