CVE-2024-38545·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.9.3
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 3% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2024-38545 scores 7.8 on CVSS, so a successful attack would be serious — but at <0.1%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.9
Until: 6.9.3
Fixed in: 6.9.3
How to fix this CVE
Update your Linux kernel to version 6.9.3 or later to resolve a use-after-free (UAF) vulnerability in the RDMA/hns (Huawei HiSilicon RoCE) driver. This vulnerability occurs when completion queue (CQ) asynchronous events and CQ destruction operations race without proper synchronization, potentially allowing local privilege escalation. Apply the security patch immediately if you are running kernel versions 6.9 through 6.9.2.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check your current kernel version by running: uname -r | grep -E '^6\.9\.[0-2]'
- Verify if the RDMA/hns driver is loaded: lsmod | grep -i hns
- Monitor kernel logs for UAF-related errors with: sudo dmesg | grep -i 'use-after-free\|kernel.*bug\|address.*sanitizer'
- Confirm the fix by verifying the kernel version is 6.9.3 or later: uname -r
FAQ
What is CVE-2024-38545?
This is a use-after-free vulnerability in the Linux kernel's RDMA/hns driver where completion queue (CQ) refcount operations lack proper locking, allowing concurrent asynchronous events and CQ destruction to trigger memory safety violations and potential privilege escalation.
Is CVE-2024-38545 being actively exploited?
No, according to CISA's Known Exploited Vulnerabilities catalog, this CVE is not currently being actively exploited in the wild, and no public exploits are available.
What versions of Kernel are affected by CVE-2024-38545?
Linux kernel versions 6.9 through 6.9.2 are vulnerable; the issue is resolved in kernel 6.9.3 and later.
How do I check if my server is vulnerable to CVE-2024-38545?
Run `uname -r` and check if the output matches 6.9.0, 6.9.1, or 6.9.2, then verify the RDMA/hns driver is present with `lsmod | grep hns`.
Does Defensia detect CVE-2024-38545?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2024-38545 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/330c825e66ef65278e4ebe57fd49c1d6f3f4e34e
- https://git.kernel.org/stable/c/37a7559dc1358a8d300437e99ed8ecdab0671507
- https://git.kernel.org/stable/c/39d26cf46306bdc7ae809ecfdbfeff5aa1098911
- https://git.kernel.org/stable/c/63da190eeb5c9d849b71f457b15b308c94cbaf08
- https://git.kernel.org/stable/c/763780ef0336a973e933e40e919339381732dcaf
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-38545. Free for 1 server.
Get started free