RDMA/siw: Fix immediate work request flush to completion queue
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b · < bdf1da5df9da680589a7f74448dd0a94dd3e1446| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
RDMA/siw: Fix immediate work request flush to completion queue
Correctly set send queue element opcode during immediate work request flushing in post sendqueue operation, if the QP is in ERROR state. An undefined ocode value results in out-of-bounds access to an array for mapping the opcode between siw internal and RDMA core representation in work completion generation. It resulted in a KASAN BUG report of type 'global-out-of-bounds' during NFSoRDMA testing.
This patch further fixes a potential case of a malicious user which may write undefined values for completion queue elements status or opcode, if the CQ is memory mapped to user land. It avoids the same out-of-bounds access to arrays for status and opcode mapping as described above.
From the CVE record · Linux
The Linux kernel's RDMA/siw code can access outside an opcode-mapping array when it flushes an immediate work request while the QP is in the ERROR state. A local user with a completion queue mapped into user space may also write undefined status or opcode values that trigger out-of-bounds access to mapping arrays.
Engineers running Linux kernels with RDMA/siw should check their vendor's advisory for affected versions.