CVE-2026-100049: RDS/IB: validate receive fragment completions
In the Linux kernel, the following vulnerability has been resolved:
RDS/IB: validate receive fragment completions
rdsibprocessrecv() accounts every receive fragment as contributing min(irecvdatarem, RDSFRAGSIZE) bytes, regardless of the completion length. When a completion is shorter than the header-declared amount, receive accounting can advance beyond the payload supplied by the completion.
Only an IBWCRECV completion has the buffer layout expected by this receive path. Other successful completion opcodes must not be interpreted as ordinary receive completions.
Reject successful completions with any other opcode before processing their length. For ordinary receive completions, require enough payload to cover the amount accounted to the fragment before linking its page into the incoming message.
This is compatible with the current transmit paths. MSGZEROCOPY is restricted to RDS/TCP, while RDS/IB copied and page-vector messages use full-sized non-final scatterlist entries.
Found during an LLM-assisted source audit and validated under KMSAN with a malformed short receive completion.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In RDS/IB, reject successful completions whose opcode is not IB_WC_RECV before processing them as ordinary receive completions.
- Compensating control
In RDS/IB, reject a receive completion if its payload is shorter than min(i_recv_data_rem, RDS_FRAG_SIZE), the amount accounted to that fragment, before linking its page or advancing receive accounting.
Event History
Frequently Asked Questions
Is RDS/TCP affected by the MSG_ZEROCOPY behavior discussed in this issue?
No. MSG_ZEROCOPY is restricted to RDS/TCP, while this validation issue is in the RDS/IB receive path.
What validation is required for receive completions?
Successful completions whose opcode is not IB_WC_RECV must be rejected before their length is processed. For IB_WC_RECV completions, the supplied payload must cover the amount being accounted to the fragment before its page is linked into the incoming message.