In the Linux kernel, the following vulnerability has been resolved: RDMA/siw: Enforce IB_ACCESS_REMOTE_READ for read responses When generating an RDMA READ response (SIW_OP_READ_RESPONSE), siw_check_sgl_tx() unconditionally passes 0 as the required permission mask: /* Reference memory to be tx'd w/o checking access for LOCAL_READ */ rv = siw_check_sgl_tx(qp->pd, wqe, 0); Because perms is 0, siw_check_mem()'s authorization test: if ((mem->perms & perms) < perms) evaluates to (mem->perms & 0) < 0, which is always false. Consequently, an untrusted remote peer can issue an RDMA Read targeting any valid STag in the Protection Domain, even if the memory was registered strictly as write-only (IB_ACCESS_REMOTE_WRITE) without IB_ACCESS_REMOTE_READ. Enforce that the target memory region was granted IB_ACCESS_REMOTE_READ when answering SIW_OP_READ_RESPONSE work queue entries, while preserving perms = 0 for standard local sends.
https://git.kernel.org/stable/c/f74eac4fc6c56274fb96c2c44ffad8f01c325f17
https://git.kernel.org/stable/c/d883545e1013e5e51950953da8263bdfeffe3655
https://git.kernel.org/stable/c/c7c14408aa2eb50d8bde6d95bc7244b10098cb5e
https://git.kernel.org/stable/c/c3e1df0c0861fe752b46cc402953604c68d3517d
https://git.kernel.org/stable/c/9df68097f91bf212af73897da54ef9cea96b0014
https://git.kernel.org/stable/c/5c501a5dab51d44166c22947a552eb5418fef904
https://git.kernel.org/stable/c/2eade141d282377a900f6a006656846cf27825a5
https://git.kernel.org/stable/c/176a278074403f7e1594f4d25809f9d5fa7bca67