Bug 2334805 (CVE-2024-56756) - CVE-2024-56756 kernel: nvme-pci: fix freeing of the HMB descriptor table
Summary: CVE-2024-56756 kernel: nvme-pci: fix freeing of the HMB descriptor table
Keywords:
Status: NEW
Alias: CVE-2024-56756
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-29 12:01 UTC by OSIDB Bzimport
Modified: 2024-12-30 05:24 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-12-29 12:01:10 UTC
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.

Comment 1 Avinash Hanwate 2024-12-30 05:19:58 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024122928-CVE-2024-56756-32fb@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.