CVE-2024-56756
nvme-pci: fix freeing of the HMB descriptor table
Reported by linux · Published December 29, 2024
In the Linux kernel, the following vulnerability has been resolved: nvme-pci: fix freeing of the HMB descriptor table The HMB descriptor table is sized to the maximum number of descriptors that could be used for a given device, but __nvme_alloc_host_mem could break out of the loop earlier on memory allocation failure and end up using less descriptors than planned for, which leads to an incorrect size passed to dma_free_coherent. In practice this was not showing up because the number of descriptors tends to be low and the dma coherent allocator always allocates and frees at least a page.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-modules-extra-common | Amazon Linux | 6.1.124-134.200.amzn2023 |
| kernel-livepatch-6.1.124-134.200 | Amazon Linux | 1.0-0.amzn2023 |
| kernel | Amazon Linux | 6.1.124-134.200.amzn2023 |
| kernel-tools-devel | Amazon Linux | 6.1.124-134.200.amzn2023 |
| kernel-tools | Amazon Linux | 6.1.124-134.200.amzn2023 |
| python3-perf | Amazon Linux | 6.1.124-134.200.amzn2023 |
| kernel-modules-extra | Amazon Linux | 6.1.124-134.200.amzn2023 |
| kernel-libbpf-devel | Amazon Linux | 6.1.124-134.200.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.1.124-134.200.amzn2023 |
| kernel-devel | Amazon Linux | 6.1.124-134.200.amzn2023 |
| perf | Amazon Linux | 6.1.124-134.200.amzn2023 |
| bpftool | Amazon Linux | 6.1.124-134.200.amzn2023 |
2 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 87ad72a59a38d1df217cfd95bc222a2edfe5d399, 87ad72a59a38d1df217cfd95bc222a2edfe5d399, 87ad72a59a38d1df217cfd95bc222a2edfe5d399 |
| Linux | Linux | 4.13, 0, 5.4.287 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-livepatch-6.1.124-134.200 | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-headers | 0 |
| linux | linux_kernel | 4.13, 4.13, 4.13 |
| amazon:2023 | kernel-libbpf | 0 |
| Linux | Linux | 87ad72a59a38d1df217cfd95bc222a2edfe5d399, 87ad72a59a38d1df217cfd95bc222a2edfe5d399, 87ad72a59a38d1df217cfd95bc222a2edfe5d399 |
Timeline
- Dec 29, 2024 CVE Published
- Dec 30, 2024 EPSS Score (30 in total, the first dated here)
- Jan 20, 2025 Coalition ESS Score (11 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Dec 29, 2025 Security Advisory (470 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (386 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-56756
vulnetix vdb fixes CVE-2024-56756
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-56756/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart