CVE-2024-56756: nvme-pci: fix freeing of the HMB descriptor table
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 nvmeallochostmem 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 dmafreecoherent.
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.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-56756?
CVE-2024-56756 has a moderate severity level due to potential impacts on memory management in the Linux kernel.
How do I fix CVE-2024-56756?
To fix CVE-2024-56756, upgrade your Linux kernel to a version that addresses this vulnerability.
What versions of the Linux kernel are affected by CVE-2024-56756?
CVE-2024-56756 affects Linux kernel versions from 4.13 up to 6.12.2.
Is CVE-2024-56756 a local or remote attack vulnerability?
CVE-2024-56756 is primarily a local attack vulnerability, impacting users with access to the system.
What components of the Linux kernel are impacted by CVE-2024-56756?
CVE-2024-56756 specifically impacts the nvme-pci component related to host memory buffer management.