KernelScan.io

CRITICAL Introduced in 5.11

svcrdma ChunkSegcount Panic

CVE-2026-93228

CVSS 9.1 / 10.0 NVD

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

KernelScan AI9.8CRITICAL

01

In the Linux kernel, the following vulnerability has been resolved: svcrdma: Reject Write/Reply chunks with segcount 0 A peer can send a Write or Reply chunk whose segcount field is zero. xdr_check_write_chunk() only rejects segcount > rc_maxpages, so zero passes the range check, and xdr_inline_decode(stream, 0) returns the current (non-NULL) cursor without advancing. The function returns true and pcl_alloc_write() then links a struct svc_rdma_chunk with ch_segcount == 0 onto rc_write_pcl or rc_reply_pcl. An earlier patch in this series made pcl_for_each_segment() safe for ch_segcount == 0, so this no longer drives the memory walk it used to. Rejecting the malformed frame at the decode boundary is still worthwhile as defense in depth: it keeps degenerate zero-segment chunks off the parsed chunk lists entirely, so any future consumer that walks ch_segments directly cannot observe one, and it makes the zero-floor easy to backport to trees where the macro change is more intrusive. RFC 8166 has no meaning for a Write/Reply chunk that describes no remote buffer, so no legitimate client is affected. xdr_check_reply_chunk() funnels Reply chunks through xdr_check_write_chunk() and inherits the same rejection. pcl_alloc_write() also links each chunk onto the parsed chunk list before filling its segment array. If a future change weakens the segcount-0 rejection, an incomplete chunk is visible to consumers during the fill loop. Reorder so that list_add_tail() follows the segment fill loop, ensuring only fully-populated chunks appear on the list.

02

Engine v0.6.0

Risk summary

A remote attacker can send a crafted RPC-over-RDMA frame with a zero-segment Write or Reply chunk to an NFS/RDMA server, causing the kernel to process a degenerate chunk structure. This can lead to a kernel panic or denial of service. Any system exposing NFS over RDMA to untrusted networks is at risk.

Affectednet/sunrpc/xprtrdma/svc_rdma_recvfrom.c (svcrdma)

Vulnerability analysis

The RPC-over-RDMA server's chunk validation accepts a Write or Reply chunk whose segment count field is zero, because the range check only rejects counts exceeding a maximum. A zero count causes the XDR decode to return success without advancing the buffer, and a degenerate chunk with no segments is then linked onto the server's parsed chunk list. Any code path that later walks that chunk's segment array directly can encounter the incomplete structure and crash the kernel. The fix rejects any chunk with a segment count of zero at the decode boundary, and reorders chunk list insertion so that a chunk is only visible to consumers after its segment array is fully populated. The vulnerability is reachable by any network peer that can send an RPC-over-RDMA request to the server, requiring no authentication or privileges.

03

BranchIntroducedFixed inPatch commit
6.125.116.12.111fe533ae1bed2
6.185.116.18.50a798714b5804
7.25.117.2.445dbdb2637b7
mainline5.117.3-rc19808eb765666