CVE-2026-89526: svcrdma: Validate Read chunk positions before reconstruction
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
svcrdma: Validate Read chunk positions before reconstruction
The RPC/RDMA Read chunk position field is supplied by the remote client and stored verbatim in the parsed chunk list. xdr_count_read_segments() checks only 4-byte alignment; it never compares the position against the received inline body length.
In the single-chunk path, svc_rdma_read_complete_one() splits the head and tail kvecs at ch_position. A position past the inline body underflows the tail length, exposing adjacent slab memory to the upper XDR decoder.
In the multi-chunk path, svc_rdma_read_multiple_chunks() computes gap lengths between chunks as unsigned subtractions from ch_position. Overlapping Read chunks cause these subtractions to underflow. A final position past the inline body likewise underflows the trailing gap length. svc_rdma_copy_inline_range() then copies past the receive buffer into request pages that are returned to the client through the Reply channel.
Bound inline-range copies in svc_rdma_copy_inline_range() against the decoded inline RPC body saved in rc_saved_arg. Reject a single Read chunk positioned beyond that body, and reject multi-chunk lists where accumulated read bytes exceed the next chunk's position. Apply the same position and overlap checks in the call-chunk interleaving path.
The Linux kernel CVE team has assigned CVE-2026-89526 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.11 with commit d96962e6d0e281bab6a48e83b42f5dce6eb28bf4 and fixed in 6.12.109 with commit 5ab3f6d882fe07ae5e61d0bcfeea00b9409155c2 Issue introduced in 5.11 with commit d96962e6d0e281bab6a48e83b42f5dce6eb28bf4 and fixed in 6.18.50 with commit f84ec84d8d4bc65f9ae23372570349687f66fa39 Issue introduced in 5.11 with commit d96962e6d0e281bab6a48e83b42f5dce6eb28bf4 and fixed in 7.2.4 with commit 577097455d084610fc31e91e6a61c5793b6f04ba Issue introduced in 5.11 with commit d96962e6d0e281bab6a48e83b42f5dce6eb28bf4 and fixed in 7.3-rc1 with commit 3779b7b9e7d1c8ba4738f9d327de3b0288cefe9b
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-89526
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/svc_rdma_rw.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/5ab3f6d882fe07ae5e61d0bcfeea00b9409155c2 https://git.kernel.org/stable/c/f84ec84d8d4bc65f9ae23372570349687f66fa39 https://git.kernel.org/stable/c/577097455d084610fc31e91e6a61c5793b6f04ba https://git.kernel.org/stable/c/3779b7b9e7d1c8ba4738f9d327de3b0288cefe9b