CVE-2024-56747: scsi: qedi: Fix a possible memory leak in qedi_alloc_and_init_sb()
In the Linux kernel, the following vulnerability has been resolved:
scsi: qedi: Fix a possible memory leak in qediallocandinitsb()
Hook "qediops->common->sbinit = qedsbinit" does not release the DMA memory sbvirt when it fails. Add dmafreecoherent() to free it. This is the same way as qedrallocmemsb() and qedeallocmemsb().
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
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
debian/linux-6.1to a version that resolves this vulnerability.Fixed in 6.1.129-1~deb11u1 - Compensating control
Add dma_free_coherent() to qedi_alloc_and_init_sb() so the DMA memory sb_virt is released when qedi_ops->common->sb_init = qed_sb_init fails.
Event History
Frequently Asked Questions
What is the severity of CVE-2024-56747?
CVE-2024-56747 is classified as a medium severity vulnerability in the Linux kernel.
How do I fix CVE-2024-56747?
To fix CVE-2024-56747, ensure your Linux kernel is updated to a version that includes the patch for the vulnerability.
What systems are affected by CVE-2024-56747?
CVE-2024-56747 affects multiple versions of the Linux kernel from 4.10 to 6.12.
What type of vulnerability is CVE-2024-56747?
CVE-2024-56747 is a memory leak vulnerability related to the qedi driver in the Linux kernel.
Is there a workaround for CVE-2024-56747?
Currently, there is no known workaround for CVE-2024-56747; updating the kernel is the recommended solution.