CVE-2026-139354: RDMA/rxe: bound the WQE opcode before indexing rxe_wr_opcode_info[]
In the Linux kernel, the following vulnerability has been resolved:
RDMA/rxe: bound the WQE opcode before indexing rxewropcodeinfo[]
wropcodemask() indexes the global rxewropcodeinfo[] array with a caller-supplied opcode and no bounds check. For a user QP the WQE comes from an mmap'd SQ ring, so wqe->wr.opcode is an attacker-controlled u32 read back by the requester (reqnextwqe() -> rxerequester()); rxepostsend() takes the qp->isuser branch and never runs validatesendwr(), whose only opcode check is itself !wropcodemask() (it indexes before it checks). rxewropcodeinfo[] has entries only up to IBWRREGMR, so an out-of-range opcode reads out of bounds and the result is used as a mask and dereferenced; observed as a KASAN global-out-of-bounds "Read of size 4" and a wild-pointer oops.
Return a zero mask for an out-of-range opcode, matching how validatesendwr() already treats a zero mask (an invalid WR), so no path indexes the array out of bounds.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In RDMA/rxe, bounds-check the WQE opcode before indexing rxe_wr_opcode_info[] and return a zero mask for out-of-range opcodes.
Event History
Frequently Asked Questions
Who can trigger the vulnerable path?
A local user able to use a user-mode RXE queue pair can control the WQE opcode through the memory-mapped send-queue ring. The issue is specifically described for user QPs, where the normal send-work-request validation is bypassed.
What happens when an invalid opcode is supplied?
An out-of-range opcode can cause an out-of-bounds read from rxe_wr_opcode_info[]. The resulting value is used as a mask and dereferenced, which was observed as a KASAN global-out-of-bounds read and a wild-pointer oops.
How does the fix handle invalid opcodes?
The fix returns a zero mask when the opcode is outside the bounds of rxe_wr_opcode_info[]. A zero mask is already treated as an invalid work request by validation logic, preventing the out-of-bounds array access.