haitam lazaar / lazaarsec
CVE-2026-139415unrated[patched]

Soft-iWARP RDMA Read Permission Bypass on Write-Only Memory Regions

TARGET ECOSYSTEM / VENDORLinux Kernel
AFFECTED PRODUCTRDMA Soft-iWARP driver (siw), Linux 5.3 and later
CWE CLASSIFICATIONCWE-863: Incorrect Authorization
PUBLISHED / DISCLOSED DATE2026-11-30
ADVISORY / CNACNA / CVE Record↗
UPSTREAM PATCH / COMMIT

Coordinated Disclosure Timeline

6 Milestones
  1. Missing read-permission check identified in siw_qp_tx.c; leak reproduced under QEMU

  2. Patch sent to linux-rdma; siw maintainer Bernard Metzler reviews v1, v2 sent with his cleanup

  3. Acked-by: Bernard Metzler on v2

  4. v3 applied to rdma.git by Leon Romanovsky

  5. Merged into mainline; queued for the 7.3, 6.18, 6.12, 6.6, 6.1, 5.15 and 5.10 stable trees

  6. CVE-2026-139415 published by the kernel.org CNA

Technical Advisory & Impact AnalysisDISCLOSURE DOSSIER

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.