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

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-12-29T11:30:20.516Z
- Modified: 2026-06-17T08:12:55.097Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 87ad72a59a38d1df217cfd95bc222a2edfe5d399 before ac22240540e0c5230d8c4138e3778420b712716a; from 87ad72a59a38d1df217cfd95bc222a2edfe5d399 before 452f9ddd12bebc04cef741e8ba3806bf0e1fd015; from 87ad72a59a38d1df217cfd95bc222a2edfe5d399 before 869cf50b9c9d1059f5223f79ef68fc0bc6210095; from 87ad72a59a38d1df217cfd95bc222a2edfe5d399 before fb96d5cfa97a7363245b3dd523f475b04296d87b; from 87ad72a59a38d1df217cfd95bc222a2edfe5d399 before cee3bff51a35cab1c5d842d409a7b11caefe2386; from 87ad72a59a38d1df217cfd95bc222a2edfe5d399 before 6d0f599db73b099aa724a12736369c4d4d92849d; from 87ad72a59a38d1df217cfd95bc222a2edfe5d399 before 582d9ed999b004fb1d415ecbfa86d4d8df455269; from 87ad72a59a38d1df217cfd95bc222a2edfe5d399 before 3c2fb1ca8086eb139b2a551358137525ae8e0d7a; 4.13 (not affected: before 4.13; from 5.4.287 up to 5.4.*; from 5.10.231 up to 5.10.*; from 5.15.174 up to 5.15.*; from 6.1.120 up to 6.1.*; from 6.6.64 up to 6.6.*; from 6.11.11 up to 6.11.*; from 6.12.2 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 4.13 before 5.4.287; from 5.5 before 5.10.231; from 5.11 before 5.15.174; from 5.16 before 6.1.120; from 6.2 before 6.6.64; from 6.7 before 6.11.11; from 6.12 before 6.12.2

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <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> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## Sources

- CVE List: [CVE-2024-56756](https://www.cve.org/CVERecord?id=CVE-2024-56756), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-56756](https://nvd.nist.gov/vuln/detail/CVE-2024-56756), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-56756 · Whole record: https://cve.day/CVE-2024-56756.json · Rebuilt by cve.day 2026-11-25T22:58:50.566Z
