VDB

CVE-2024-56756

CVE-2024-56756 PUBLISHED CVSS 5.5 MEDIUM

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.

PackageEcosystemFixed in
kernel-modules-extra-commonAmazon Linux6.1.124-134.200.amzn2023
kernel-livepatch-6.1.124-134.200Amazon Linux1.0-0.amzn2023
kernelAmazon Linux6.1.124-134.200.amzn2023
kernel-tools-develAmazon Linux6.1.124-134.200.amzn2023
kernel-toolsAmazon Linux6.1.124-134.200.amzn2023
python3-perfAmazon Linux6.1.124-134.200.amzn2023
kernel-modules-extraAmazon Linux6.1.124-134.200.amzn2023
kernel-libbpf-develAmazon Linux6.1.124-134.200.amzn2023
kernel-libbpf-staticAmazon Linux6.1.124-134.200.amzn2023
kernel-develAmazon Linux6.1.124-134.200.amzn2023
perfAmazon Linux6.1.124-134.200.amzn2023
bpftoolAmazon Linux6.1.124-134.200.amzn2023

2 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
LinuxLinux87ad72a59a38d1df217cfd95bc222a2edfe5d399, 87ad72a59a38d1df217cfd95bc222a2edfe5d399, 87ad72a59a38d1df217cfd95bc222a2edfe5d399
LinuxLinux4.13, 0, 5.4.287
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-livepatch-6.1.124-134.2000
amazon:2023kernel0
amazon:2023kernel-tools-devel0
amazon:2023kernel-tools0
amazon:2023python3-perf0
amazon:2023kernel-modules-extra0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-devel0
amazon:2023perf0
amazon:2023bpftool0
amazon:2023kernel-headers0
linuxlinux_kernel4.13, 4.13, 4.13
amazon:2023kernel-libbpf0
LinuxLinux87ad72a59a38d1df217cfd95bc222a2edfe5d399, 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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›