PT-2026-162694

CVE-2026-138834

·

Published

2026-11-30

·

Updated

2026-11-30

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

In the Linux kernel, the following vulnerability has been resolved:
xprtrdma: trim head iovec when the payload arrives via a Write chunk
The upper layer sets rq rcv buf.head[0].iov len from its estimate of the reply header size. For RPCSEC GSS that estimate includes auth->au ralign, which gss create new() initializes to GSS VERF SLACK >> 2 (25 XDR words, or 100 bytes) and which is corrected to the real verifier size only after the first reply on that rpc auth has been unwrapped. In this case, the krb5 MIC verifier is 36 bytes, so every request encoded before the first reply completes has a head that is 64 bytes too long.
On TCP this is harmless: xdr realign pages() moves the excess head bytes, which are genuine reply data, into the page list. With RPC-over-RDMA and a Write chunk (sec=krb5, i.e. RPC GSS SVC NONE, where DDP is allowed), the payload has already been placed directly into the page list, and the receive buffer holds only the inline part of the reply. rpcrdma inline fixup() clamps its local copy of the head length to the inline length but leaves head.iov len untouched, so xdr realign pages() still sees iov len > cur and shifts whatever lies past the inline reply in the receive buffer into the front of the directly-placed payload:
rpc xdr recvfrom: head=[...,196] page=524288 tail=[...,64] rpc xdr alignment: nfsv4 READ offset=132 copied=64
The first 64 bytes returned by each such READ are incorrect (zeroed, or shifted right by 64 bytes depending on the kernel's xdr shrink bufhead() implementation). This is readily hit with pNFS flexfiles over RDMA and sec=krb5: the per-DS rpc clnt gets a fresh rpc auth whose first RPC is a large READ. Reads following the first completed reply return the expected data.
Commit cb0ae1fbb2f5 ("xprtrdma: Do not update {head, tail}.iov len in rpcrdma inline fixup()") removed the head-length correction while fixing the handling of pure-inline krb5p replies.
When a Write chunk conveyed the payload, trim head.iov len (in both rq rcv buf and rq private buf, which call decode() expects to match) to the inline length actually received so that the XDR layer does not realign the page list. These READ replies have no trailing inline fields, and the payload is already in the page list, so the upper layer's head estimate can be safely reduced. Reduce buflen by the same amount to avoid treating unused head capacity as additional tail capacity. Pure inline replies and Reply chunk replies are unchanged.
Tested on Linux 6.8.0 and 7.3-rc4 with NFSv4.1 pNFS flexfiles over RPC/RDMA and sec=krb5.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾