# CVE-2024-56756: nvme-pci: fix freeing of the HMB descriptor table

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **Published:** 2024-12-29T11:30:20.516Z
- **Modified:** 2026-06-17T08:12:55.097Z

## Who should check

- Anyone running Linux \>= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, \< ac22240540e0c5230d8c4138e3778420b712716a; \>= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, \< 452f9ddd12bebc04cef741e8ba3806bf0e1fd015; \>= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, \< 869cf50b9c9d1059f5223f79ef68fc0bc6210095; \>= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, \< fb96d5cfa97a7363245b3dd523f475b04296d87b; \>= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, \< cee3bff51a35cab1c5d842d409a7b11caefe2386; \>= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, \< 6d0f599db73b099aa724a12736369c4d4d92849d; \>= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, \< 582d9ed999b004fb1d415ecbfa86d4d8df455269; \>= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, \< 3c2fb1ca8086eb139b2a551358137525ae8e0d7a
- Anyone running Linux 4.13

## Description

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.

## Affected and fixed versions

- Linux: \>= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, \< ac22240540e0c5230d8c4138e3778420b712716a; \>= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, \< 452f9ddd12bebc04cef741e8ba3806bf0e1fd015; \>= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, \< 869cf50b9c9d1059f5223f79ef68fc0bc6210095; \>= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, \< fb96d5cfa97a7363245b3dd523f475b04296d87b; \>= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, \< cee3bff51a35cab1c5d842d409a7b11caefe2386; \>= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, \< 6d0f599db73b099aa724a12736369c4d4d92849d; \>= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, \< 582d9ed999b004fb1d415ecbfa86d4d8df455269; \>= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, \< 3c2fb1ca8086eb139b2a551358137525ae8e0d7a (cvelist)
- Linux: 4.13 (cvelist)

## Mitigation

- Upgrade Linux to 3c2fb1ca8086eb139b2a551358137525ae8e0d7a or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-56756. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56756.md
Affected: Linux >= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, < ac22240540e0c5230d8c4138e3778420b712716a; >= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, < 452f9ddd12bebc04cef741e8ba3806bf0e1fd015; >= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, < 869cf50b9c9d1059f5223f79ef68fc0bc6210095; >= 87ad72a59a38d1df217cfd9…
Fixed in: Linux 452f9ddd12bebc04cef741e8ba3806bf0e1fd015, Linux 869cf50b9c9d1059f5223f79ef68fc0bc6210095, Linux 6d0f599db73b099aa724a12736369c4d4d92849d, Linux 582d9ed999b004fb1d415ecbfa86d4d8df455269, Linux 3c2fb1ca8086eb139b2a551358137525ae8e0d7a

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-56756 being exploited?

There is no confirmed exploitation: CVE-2024-56756 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-56756?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-56756?

Linux \>= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, \< ac22240540e0c5230d8c4138e3778420b712716a; \>= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, \< 452f9ddd12bebc04cef741e8ba3806bf0e1fd015; \>= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, \< 869cf50b9c9d1059f5223f79ef68fc0bc6210095; \>= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, \< fb96d5cfa97a7363245b3dd523f475b04296d87b; \>= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, \< cee3bff51a35cab1c5d842d409a7b11caefe2386; \>= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, \< 6d0f599db73b099aa724a12736369c4d4d92849d; \>= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, \< 582d9ed999b004fb1d415ecbfa86d4d8df455269; \>= 87ad72a59a38d1df217cfd95bc222a2edfe5d399, \< 3c2fb1ca8086eb139b2a551358137525ae8e0d7a; Linux 4.13.

### Is there a fix for CVE-2024-56756?

Yes. Fixed in Linux 452f9ddd12bebc04cef741e8ba3806bf0e1fd015, Linux 869cf50b9c9d1059f5223f79ef68fc0bc6210095, Linux 6d0f599db73b099aa724a12736369c4d4d92849d, Linux 582d9ed999b004fb1d415ecbfa86d4d8df455269, Linux 3c2fb1ca8086eb139b2a551358137525ae8e0d7a. Upgrade Linux to 3c2fb1ca8086eb139b2a551358137525ae8e0d7a or later.

### How do I check if I'm affected by CVE-2024-56756?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/ac22240540e0c5230d8c4138e3778420b712716a>
- patch: <https://git.kernel.org/stable/c/452f9ddd12bebc04cef741e8ba3806bf0e1fd015>
- patch: <https://git.kernel.org/stable/c/869cf50b9c9d1059f5223f79ef68fc0bc6210095>
- patch: <https://git.kernel.org/stable/c/fb96d5cfa97a7363245b3dd523f475b04296d87b>
- patch: <https://git.kernel.org/stable/c/cee3bff51a35cab1c5d842d409a7b11caefe2386>
- patch: <https://git.kernel.org/stable/c/6d0f599db73b099aa724a12736369c4d4d92849d>
- patch: <https://git.kernel.org/stable/c/582d9ed999b004fb1d415ecbfa86d4d8df455269>
- patch: <https://git.kernel.org/stable/c/3c2fb1ca8086eb139b2a551358137525ae8e0d7a>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-56756>

HTML: <https://flawdb.com/CVE-2024-56756> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-56756>
