nvme-pci: fix freeing of the HMB descriptor table (Linux Linux)

CVE-2024-56756
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.22 % · percentile 12 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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.

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 87ad72a59a38d1df217cfd95bc222a2edfe5d399 < ac22240540e0c5230d8c4138e3778420b712716a ; affected 87ad72a59a38d1df217cfd95bc222a2edfe5d399 < 452f9ddd12bebc04cef741e8ba3806bf0e1fd015 ; affected 87ad72a59a38d1df217cfd95bc222a2edfe5d399 < 869cf50b9c9d1059f5223f79ef68fc0bc6210095 ; affected 87ad72a59a38d1df217cfd95bc222a2edfe5d399 < fb96d5cfa97a7363245b3dd523f475b04296d87b ; affected 87ad72a59a38d1df217cfd95bc222a2edfe5d399 < cee3bff51a35cab1c5d842d409a7b11caefe2386 ; affected 87ad72a59a38d1df217cfd95bc222a2edfe5d399 < 6d0f599db73b099aa724a12736369c4d4d92849d
Linux · Linuxaffected 4.13 ; unaffected 0 < 4.13 ; unaffected 5.4.287 ≤ 5.4.* ; unaffected 5.10.231 ≤ 5.10.* ; unaffected 5.15.174 ≤ 5.15.* ; unaffected 6.1.120 ≤ 6.1.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD