Skip to contentSkip to conversation

CVE-2026-72465: xprtrdma: Sanitize the reply credit grant after parsing

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 15

lore
Share & tools
lore
#0 lore raw

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

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

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

xprtrdma: Sanitize the reply credit grant after parsing

The out_norqst exit in rpcrdma_reply_handler() branches away before the credit clamp, so a reply that matches no pending request reaches out_post carrying the raw credit value parsed from the wire. rpcrdma_post_recvs() does not bound its @needed argument: the refill loop allocates and chains Receive WRs until the count is satisfied or allocation fails. A peer that sends a well-formed reply carrying an unknown XID and an inflated credit grant therefore drives rep allocation and Receive posting past re_max_requests on every such reply.

Move the clamp to immediately after the credit field is parsed, ahead of the first branch that can reach out_post, so every later consumer sees a sanitized value. The cwnd update stays on the matched-request path.

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

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

	Issue introduced in 7.1 with commit 704f3f640f72db4d44ec5ce3db8d4e150c974bc7 and fixed in 7.1.5 with commit 33db78b1b24fc6a464ae08aa4d2538c5f883eb5e
	Issue introduced in 7.1 with commit 704f3f640f72db4d44ec5ce3db8d4e150c974bc7 and fixed in 7.2-rc1 with commit c3a628aab2dc8f5fd7bff86ceaeae64de590e60a

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

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/xprtrdma/rpc_rdma.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/7cf332b3d82d73ffceedca6b4a120be074172021
	https://git.kernel.org/stable/c/41634242140173eabbf54f899f9c70b5c685e786
	https://git.kernel.org/stable/c/8be1bb378def94a5cb8f7527a191e476407118ec
	https://git.kernel.org/stable/c/469b22376ee73369711ecf2761bd122ef4195963
	https://git.kernel.org/stable/c/33db78b1b24fc6a464ae08aa4d2538c5f883eb5e
	https://git.kernel.org/stable/c/c3a628aab2dc8f5fd7bff86ceaeae64de590e60a