CVE-2024-56756
JSON

5.5medium

nvme-pci: fix freeing of the HMB descriptor table

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 and 1 more
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.*
CVE List
linux linux_kernelfrom 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.2NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: nvme-pci: se corrige la liberación de la tabla de descriptores HMB La tabla de descriptores HMB tiene un tamaño que coincide con el número máximo de descriptores que se pueden usar para un dispositivo determinado, pero __nvme_alloc_host_mem podría salir del bucle antes en caso de fallo en la asignación de memoria y terminar usando menos descriptores de lo planeado, lo que lleva a que se pase un tamaño incorrecto a dma_free_coherent. En la práctica, esto no se mostraba porque el número de descriptores tiende a ser bajo y el asignador coherente dma siempre asigna y libera al menos una página.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-56756 changed 2026-05-11CVE Terms of Use
NVDCVE-2024-56756 changed 2026-06-17Public domain