All of lore.kernel.org
 help / color / mirror / Atom feed
* CVE-2026-99357: SUNRPC: Copy the deferred RPC Call from the head buffer
@ 2026-11-19 14:24 Greg Kroah-Hartman
  0 siblings, 0 replies; only message in thread
From: Greg Kroah-Hartman @ 2026-11-19 14:24 UTC (permalink / raw)
  To: linux-cve-announce; +Cc: Greg Kroah-Hartman

From: Greg Kroah-Hartman <gregkh@kernel.org>

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

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

SUNRPC: Copy the deferred RPC Call from the head buffer

svc_defer() snapshots the RPC Call for replay once a pending cache
upcall resolves. It copies the Call starting (rq_arg.len -
head[0].iov_len) bytes before head[0].iov_base, a back-up that once
covered a transport header. No transport has had one since commit
983084b2672c ("SUNRPC: Remove svc_rqst::rq_xprt_hlen"), so the two
lengths are meant to be equal.

An RPCSEC_GSS Call breaks that assumption. Unwrapping the integrity
service truncates rq_arg.len by the length of the trailing checksum,
and unwrapping the privacy service leaves rq_arg.len short by an
amount the client sets with trailing bytes after the wrap token.
Neither adjusts head[0].iov_len. Both lengths are size_t, so the
subtraction underflows and the copy starts past head[0].iov_base.
Every deferred integrity Call replays a shifted snapshot.

A deferred replay skips GSS verification, so a shifted snapshot runs
as an authenticated Call. With the privacy service the offset is
client-chosen. A forged Call placed in that window, naming another
user's GSS context handle, runs under that identity.

Copy the Call from head[0].iov_base. Refuse to defer a Call whose
length runs past the head buffer, so the copy cannot read out of
bounds.

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


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

	Issue introduced in 2.6.25 with commit 260c1d1298f6703d38fdccd3dd5a310766327340 and fixed in 6.12.117 with commit 629a17cc81fe0b749bbee8303797b6c99a3e776b
	Issue introduced in 2.6.25 with commit 260c1d1298f6703d38fdccd3dd5a310766327340 and fixed in 6.18.61 with commit d514dd81771aff1192e84a57ae60428c13f07ccb
	Issue introduced in 2.6.25 with commit 260c1d1298f6703d38fdccd3dd5a310766327340 and fixed in 7.3.2 with commit 70614e41d379e5b9b1893ac65b49ae4cea6c36eb
	Issue introduced in 2.6.25 with commit 260c1d1298f6703d38fdccd3dd5a310766327340 and fixed in 7.4-rc1 with commit 2192a56b0686599358909c3e12e9a366f5b5d452

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-99357
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/629a17cc81fe0b749bbee8303797b6c99a3e776b
	https://git.kernel.org/stable/c/d514dd81771aff1192e84a57ae60428c13f07ccb
	https://git.kernel.org/stable/c/70614e41d379e5b9b1893ac65b49ae4cea6c36eb
	https://git.kernel.org/stable/c/2192a56b0686599358909c3e12e9a366f5b5d452

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-19 14:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-19 14:24 CVE-2026-99357: SUNRPC: Copy the deferred RPC Call from the head buffer Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.