# CVE-2022-50736: RDMA/siw: Fix immediate work request flush to completion queue

- Severity: High 7.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-12-24T12:22:54.695Z
- Modified: 2026-08-05T08:59:32.604Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b before 6af043089d3f1210776d19b6fdabea610d4c7699; from 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b before 75af03fdf35acf15a3977f7115f6b8d10dff4bc7; from 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b before f8d8fbd3b6d6cc3f25790cca5cffe8ded512fef6; from 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b before 355d2eca68c10d713a42f68e62044b3d1c300471; from 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b before f3d26a8589dfdeff328779b511f71fb90b10005e; from 303ae1cdfdf7280ff4cfbbe65563b5ff15bb025b before bdf1da5df9da680589a7f74448dd0a94dd3e1446; 5.3 (not affected: before 5.3; from 5.4.229 up to 5.4.*; from 5.10.163 up to 5.10.*; from 5.15.86 up to 5.15.*; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)

## References

- <https://git.kernel.org/stable/c/6af043089d3f1210776d19b6fdabea610d4c7699>
- <https://git.kernel.org/stable/c/75af03fdf35acf15a3977f7115f6b8d10dff4bc7>
- <https://git.kernel.org/stable/c/f8d8fbd3b6d6cc3f25790cca5cffe8ded512fef6>
- <https://git.kernel.org/stable/c/355d2eca68c10d713a42f68e62044b3d1c300471>
- <https://git.kernel.org/stable/c/f3d26a8589dfdeff328779b511f71fb90b10005e>
- <https://git.kernel.org/stable/c/bdf1da5df9da680589a7f74448dd0a94dd3e1446>

## Sources

- CVE List: [CVE-2022-50736](https://www.cve.org/CVERecord?id=CVE-2022-50736), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2022-50736](https://nvd.nist.gov/vuln/detail/CVE-2022-50736), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2022-50736 · Whole record: https://cve.day/CVE-2022-50736.json · Rebuilt by cve.day 2026-11-25T22:58:21.339Z
