Soft-iWARP RDMA Read Permission Bypass on Write-Only Memory Regions
Coordinated Disclosure Timeline
Missing read-permission check identified in siw_qp_tx.c; leak reproduced under QEMU
Patch sent to linux-rdma; siw maintainer Bernard Metzler reviews v1, v2 sent with his cleanup
Acked-by: Bernard Metzler on v2
v3 applied to rdma.git by Leon Romanovsky
Merged into mainline; queued for the 7.3, 6.18, 6.12, 6.6, 6.1, 5.15 and 5.10 stable trees
CVE-2026-139415 published by the kernel.org CNA
Summary
Soft-iWARP (siw), the Linux kernel’s software implementation of iWARP RDMA, never checked read permission when answering RDMA READ requests. When building a read response, siw_qp_sq_proc_tx() passed a required-permission mask of 0 to siw_check_sgl_tx(), so the test in siw_check_mem(), (mem->perms & perms) < perms, could never fail. A connected peer could read back memory an application had registered as write-only (IB_ACCESS_REMOTE_WRITE without IB_ACCESS_REMOTE_READ).
Impact
- Who: a peer with an accepted RDMA connection, a queue pair in the same protection domain, and a valid STag for the target region.
- What leaks: the contents of registered memory regions, not arbitrary kernel or process memory. Bounds and protection-domain checks still apply.
- Affected: every kernel since siw was merged in Linux 5.3 (
Fixes: b9be6f18cf9e).
Fix
siw_qp_sq_proc_tx() now requires IB_ACCESS_REMOTE_READ for SIW_OP_READ_RESPONSE work requests, while local sends keep the zero mask. The fix was acked by the siw maintainer, merged into mainline as f74eac4fc6c5, and backported to the 7.3, 6.18, 6.12, 6.6, 6.1, 5.15 and 5.10 stable kernels.