CVE-2024-38545
published high CVSS 3.1 · 7.8RDMA/hns: Fix UAF for cq async event
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux9a4435375cd151e07c0c38fa601b00115986091b to < 330c825e66ef65278e4ebe57fd49c1d6f3f4e34e · 9a4435375cd151e07c0c38fa601b00115986091b to < 763780ef0336a973e933e40e919339381732dcaf · 9a4435375cd151e07c0c38fa601b00115986091b to < 63da190eeb5c9d849b71f457b15b308c94cbaf08 · 9a4435375cd151e07c0c38fa601b00115986091b to < 39d26cf46306bdc7ae809ecfdbfeff5aa1098911 · 9a4435375cd151e07c0c38fa601b00115986091b to < 37a7559dc1358a8d300437e99ed8ecdab0671507 · 9a4435375cd151e07c0c38fa601b00115986091b to < a942ec2745ca864cd8512142100e4027dc306a42 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.9 (affected) · 0 to < 4.9 (unaffected · semver) · 5.15.168 through 5.15.* (unaffected · semver) · 6.1.93 through 6.1.* (unaffected · semver) · 6.6.33 through 6.6.* (unaffected · semver) · 6.8.12 through 6.8.* (unaffected · semver) · 6.9.3 through 6.9.* (unaffected · semver) · 6.10 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Oracle Linux | 8 | bpftoolaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultppc64le | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| Oracle Linux | 8 | bpftoolx86_64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uekaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 8 | kernel-uekx86_64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uek-containeraarch64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uek-containerx86_64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uek-container-debugaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uek-coreaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uek-corex86_64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uek-debugaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uek-debugx86_64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uek-debug-coreaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uek-debug-corex86_64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uek-debug-develaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uek-debug-develx86_64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uek-develaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uek-develx86_64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uek-docaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uek-docx86_64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uek-modulesaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uek-modulesx86_64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uek-modules-extraaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 8 | kernel-uek-modules-extrax86_64 | Advisory build | 0:5.15.0-303.171.5.2.el8uek | ELSA-2024-12887 |
| Oracle Linux | 9 | bpftoolaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | bpftoolx86_64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uekaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uekx86_64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uek-containeraarch64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uek-containerx86_64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uek-container-debugaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uek-coreaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uek-corex86_64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uek-debugaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uek-debugx86_64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uek-debug-coreaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uek-debug-corex86_64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uek-debug-develaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uek-debug-develx86_64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uek-develaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uek-develx86_64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uek-docaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uek-docx86_64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uek-modulesaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uek-modulesx86_64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uek-modules-extraaarch64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| Oracle Linux | 9 | kernel-uek-modules-extrax86_64 | Advisory build | 0:5.15.0-303.171.5.2.el9uek | ELSA-2024-12887 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaults390x | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultx86_64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-rtx86_64 | Advisory build | 4.12.14-10.191.1 | SUSE-SU-2024:2381-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultppc64le | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaults390x | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultx86_64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-rtx86_64 | Advisory build | 4.12.14-10.191.1 | SUSE-SU-2024:2381-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultppc64le | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaults390x | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultx86_64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-rtx86_64 | Advisory build | 4.12.14-10.191.1 | SUSE-SU-2024:2381-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-azurex86_64 | Advisory build | 4.12.14-16.191.1 | SUSE-SU-2024:2360-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-azure-basex86_64 | Advisory build | 4.12.14-16.191.1 | SUSE-SU-2024:2360-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-azure-develx86_64 | Advisory build | 4.12.14-16.191.1 | SUSE-SU-2024:2360-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultaarch64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultppc64le | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaults390x | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultx86_64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-baseaarch64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-baseppc64le | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-bases390x | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-basex86_64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develaarch64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develppc64le | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-devels390x | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develx86_64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-extrax86_64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraftppc64le | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgrafts390x | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraftx86_64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-develppc64le | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-devels390x | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-develx86_64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-mans390x | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-develnoarch | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-devel-azurenoarch | Advisory build | 4.12.14-16.191.1 | SUSE-SU-2024:2360-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-devel-rtnoarch | Advisory build | 4.12.14-10.191.1 | SUSE-SU-2024:2381-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-docsnoarch | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-macrosnoarch | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-obs-buildaarch64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-obs-buildppc64le | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-obs-builds390x | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-obs-buildx86_64 | Advisory build | 4.12.14-122.222.1 | SUSE-SU-2024:2561-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - Exploitation requires local access to the RDMA user-verbs character device (/dev/infiniband/uverbs*) to create/destroy CQs and post work requests; although a remote RoCE peer can help generate the CQ async events, the destroy side of the race is a local ioctl/write command. AC:L - The attacker controls both sides of the race — generating CQ_OVERFLOW/CQ_ACCESS_ERROR async events via its own RDMA traffic while destroying the CQ from another thread — and the racing code runs in preemptible workqueue context, so the window is wide and the attempt can be repeated indefinitely. PR:L - No capability check exists on the uverbs CQ create/destroy path, and /dev/infiniband/uverbs* is world-accessible under standard rdma-core udev rules, so any unprivileged local user on an RDMA-capable host can reach it. UI:N - The attacker performs all steps itself — creating the CQ, generating the async events, and destroying the CQ concurrently — with no victim action required. S:U - The use-after-free corrupts kernel heap memory within the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - The freed hns_roce_cq slab object is dereferenced after kfree(), and reclaiming it with attacker-controlled data plus the resulting indirect call yields arbitrary kernel-memory read capability. I:H - The stale pointer is both written through (refcount_inc on freed memory) and used for an indirect call — ibcq->event_handler(&event, ibcq->cq_context) with a function pointer and argument read from the freed object — giving control-flow hijack and arbitrary write potential. A:H - Even without successful heap grooming, the use-after-free corrupts the slab and jumps through a stale function pointer, reliably producing a kernel oops or panic.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 9a4435375cd151e07c0c38fa601b00115986091b to < 330c825e66ef65278e4ebe57fd49c1d6f3f4e34e (affected · git)9a4435375cd151e07c0c38fa601b00115986091b to < 763780ef0336a973e933e40e919339381732dcaf (affected · git)9a4435375cd151e07c0c38fa601b00115986091b to < 63da190eeb5c9d849b71f457b15b308c94cbaf08 (affected · git)9a4435375cd151e07c0c38fa601b00115986091b to < 39d26cf46306bdc7ae809ecfdbfeff5aa1098911 (affected · git)9a4435375cd151e07c0c38fa601b00115986091b to < 37a7559dc1358a8d300437e99ed8ecdab0671507 (affected · git)9a4435375cd151e07c0c38fa601b00115986091b to < a942ec2745ca864cd8512142100e4027dc306a42 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.9 (affected)0 to < 4.9 (unaffected · semver)5.15.168 through 5.15.* (unaffected · semver)6.1.93 through 6.1.* (unaffected · semver)6.6.33 through 6.6.* (unaffected · semver)6.8.12 through 6.8.* (unaffected · semver)6.9.3 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
6- 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
- https://git.kernel.org/stable/c/a942ec2745ca864cd8512142100e4027dc306a42
Provider assertions
3Linux · cna
RDMA/hns: Fix UAF for cq async event
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- aca70cd7e00edf47567b592f5ec29e3a3616951d440e6748097aa639892c09e0
- Ingested
- 23 Sep 2026, 08:24:49 UTC
- Source record
- Official CVE record