CVE-2024-56756

nvme-pci: fix freeing of the HMB descriptor table

MEDIUM
5.5
CVSS Score
Published: December 29, 2024 at 11:30 AM UTC
Updated: June 17, 2026 at 08:12 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.13 ≤ v < 5.10.2314.13 ≤ v < 5.15.1744.13 ≤ v < 5.4.2874.13 ≤ v < 6.1.1204.13 ≤ v < 6.11.114.13 ≤ v < 6.12.24.13 ≤ v < 6.134.13 ≤ v < 6.6.645.11 ≤ v < 5.15.1745.16 ≤ v < 6.1.1205.5 ≤ v < 5.10.2316.12 ≤ v < 6.12.26.2 ≤ v < 6.6.646.7 ≤ v < 6.11.114.1387ad72a59a38d1df217cfd95bc222a2edfe5d399
Vendor states this is fixed in 3c2fb1ca8086eb139b2a551358137525ae8e0d7a (fixed)
Vendor states this is fixed in 452f9ddd12bebc04cef741e8ba3806bf0e1fd015 (fixed)
Vendor states this is fixed in 582d9ed999b004fb1d415ecbfa86d4d8df455269 (fixed)
Vendor states this is fixed in 6d0f599db73b099aa724a12736369c4d4d92849d (fixed)
Vendor states this is fixed in 869cf50b9c9d1059f5223f79ef68fc0bc6210095 (fixed)
Vendor states this is fixed in ac22240540e0c5230d8c4138e3778420b712716a (fixed)
Vendor states this is fixed in cee3bff51a35cab1c5d842d409a7b11caefe2386 (fixed)
Vendor states this is fixed in fb96d5cfa97a7363245b3dd523f475b04296d87b (fixed)
Vendor states this is fixed in 4.13 (unaffected)
Vendor states this is fixed in 5.10.231 (unaffected)
Vendor states this is fixed in 5.15.174 (unaffected)
Vendor states this is fixed in 5.4.287 (unaffected)
Vendor states this is fixed in 6.1.120 (unaffected)
Vendor states this is fixed in 6.11.11 (unaffected)
Vendor states this is fixed in 6.12.2 (unaffected)
Vendor states this is fixed in 6.13 (unaffected)
Vendor states this is fixed in 6.6.64 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3c2fb1ca8086eb139b2a551358137525ae8e0d7a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/452f9ddd12bebc04cef741e8ba3806bf0e1fd015
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/582d9ed999b004fb1d415ecbfa86d4d8df455269
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6d0f599db73b099aa724a12736369c4d4d92849d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/869cf50b9c9d1059f5223f79ef68fc0bc6210095
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ac22240540e0c5230d8c4138e3778420b712716a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cee3bff51a35cab1c5d842d409a7b11caefe2386
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fb96d5cfa97a7363245b3dd523f475b04296d87b

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-Other

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card