CVE-2024-56756

nvme-pci: fix freeing of the HMB descriptor table

Medium · published December 29, 2024

CVSS v3.1
5.5
EPSS
0%
Percentile
11.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00218 · 11.6th percentile
Published
2024-12-29T11:30Z
EPSS history
Timeline
  • 29 DEC 11:30Z
    nvme-pci: fix freeing of the HMB descriptor table
    cvelistv5