# CVE-2022-50137: RDMA/irdma: Fix a window for use-after-free

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2025-06-18T11:03:00.899Z
- Modified: 2026-08-05T08:57:31.640Z
- Weaknesses: CWE-416
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

RDMA/irdma: Fix a window for use-after-free

During a destroy CQ an interrupt may cause processing of a CQE after CQ
resources are freed by irdma_cq_free_rsrc(). Fix this by moving the call
to irdma_cq_free_rsrc() after the irdma_sc_cleanup_ceqes(), which is
called under the cq_lock.

(As written by CVE List.)

## Affected

- Linux Linux: from b48c24c2d710cf34810c555dcef883a3d35a9c08 before 92520864ef9f912f38b403d172a0ded020683d55; from b48c24c2d710cf34810c555dcef883a3d35a9c08 before 0abf2eef80295923b819ce89ff9edc1fe61be17c; from b48c24c2d710cf34810c555dcef883a3d35a9c08 before 350ac793a03c8a30a3f2b27fc282cd1c67070763; from b48c24c2d710cf34810c555dcef883a3d35a9c08 before 8ecef7890b3aea78c8bbb501a4b5b8134367b821; 5.14 (not affected: before 5.14; from 5.15.61 up to 5.15.*; from 5.18.18 up to 5.18.*; from 5.19.2 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 5.14 before 5.15.61; from 5.16 before 5.18.18; from 5.19 before 5.19.2

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/92520864ef9f912f38b403d172a0ded020683d55> (patch)
- <https://git.kernel.org/stable/c/0abf2eef80295923b819ce89ff9edc1fe61be17c> (patch)
- <https://git.kernel.org/stable/c/350ac793a03c8a30a3f2b27fc282cd1c67070763> (patch)
- <https://git.kernel.org/stable/c/8ecef7890b3aea78c8bbb501a4b5b8134367b821> (patch)

## Sources

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

---

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