# CVE-2024-38545: RDMA/hns: Fix UAF for cq async event

- 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.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-06-19T13:35:19.336Z
- Modified: 2026-08-05T11:32:42.888Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

RDMA/hns: Fix UAF for cq async event

The refcount of CQ is not protected by locks. When CQ asynchronous
events and CQ destruction are concurrent, CQ may have been released,
which will cause UAF.

Use the xa_lock() to protect the CQ refcount.

(As written by CVE List.)

## Affected

- Linux Linux: from 9a4435375cd151e07c0c38fa601b00115986091b before 330c825e66ef65278e4ebe57fd49c1d6f3f4e34e; from 9a4435375cd151e07c0c38fa601b00115986091b before 763780ef0336a973e933e40e919339381732dcaf; from 9a4435375cd151e07c0c38fa601b00115986091b before 63da190eeb5c9d849b71f457b15b308c94cbaf08; from 9a4435375cd151e07c0c38fa601b00115986091b before 39d26cf46306bdc7ae809ecfdbfeff5aa1098911; from 9a4435375cd151e07c0c38fa601b00115986091b before 37a7559dc1358a8d300437e99ed8ecdab0671507; from 9a4435375cd151e07c0c38fa601b00115986091b before a942ec2745ca864cd8512142100e4027dc306a42; 4.9 (not affected: before 4.9; from 5.15.168 up to 5.15.*; from 6.1.93 up to 6.1.*; from 6.6.33 up to 6.6.*; from 6.8.12 up to 6.8.*; from 6.9.3 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 4.9 before 5.15.168; from 5.16 before 6.1.93; from 6.2 before 6.6.33; from 6.7 before 6.8.12; from 6.9 before 6.9.3

## 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/330c825e66ef65278e4ebe57fd49c1d6f3f4e34e> (patch)
- <https://git.kernel.org/stable/c/763780ef0336a973e933e40e919339381732dcaf> (patch)
- <https://git.kernel.org/stable/c/63da190eeb5c9d849b71f457b15b308c94cbaf08> (patch)
- <https://git.kernel.org/stable/c/39d26cf46306bdc7ae809ecfdbfeff5aa1098911> (patch)
- <https://git.kernel.org/stable/c/37a7559dc1358a8d300437e99ed8ecdab0671507> (patch)
- <https://git.kernel.org/stable/c/a942ec2745ca864cd8512142100e4027dc306a42> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2024-38545 · Whole record: https://cve.day/CVE-2024-38545.json · Rebuilt by cve.day 2026-11-25T22:58:42.008Z
