CVE-2024-56747
JSON

3.3low

scsi: qedi: Fix a possible memory leak in qedi_alloc_and_init_sb()

Severity
3.3low CVSS:3.1 by CISA-ADP
Exploit likelihood
0.23% (higher than 15% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: scsi: qedi: Fix a possible memory leak in qedi_alloc_and_init_sb() Hook "qedi_ops->common->sb_init = qed_sb_init" does not release the DMA memory sb_virt when it fails. Add dma_free_coherent() to free it. This is the same way as qedr_alloc_mem_sb() and qede_alloc_mem_sb().

Affected

Product or packageVersionsReported by
Linux Linuxfrom ace7f46ba5fde7273207c7122b0650ceb72510e0 before 4e48e5b26b3edc0e1dd329201ffc924a7a1f9337, from ace7f46ba5fde7273207c7122b0650ceb72510e0 before eaf92fad1f21be63427920c12f22227e5f757424, from ace7f46ba5fde7273207c7122b0650ceb72510e0 before a4d2011cbe039b25024831427b60ab91ee247066, from ace7f46ba5fde7273207c7122b0650ceb72510e0 before bb8b45883eb072adba297922b67d1467082ac880, from ace7f46ba5fde7273207c7122b0650ceb72510e0 before b778b5240485106abf665eb509cc01779ed0cb00, from ace7f46ba5fde7273207c7122b0650ceb72510e0 before 10a6fc486ac40a410f0fb84cc15161238eccd20a, from ace7f46ba5fde7273207c7122b0650ceb72510e0 before cfc76acaf2c4b43d1e140f1e4cbde15adb540bc5, from ace7f46ba5fde7273207c7122b0650ceb72510e0 before 20b775cf274cfbfa3da871a1108877e17b8b19e1 and 2 more
Not affected: before 4.10, from 4.19.325 up to 4.19.*, from 5.4.287 up to 5.4.*, from 5.10.231 up to 5.10.*, from 5.15.174 up to 5.15.*, from 6.1.120 up to 6.1.*
CVE List
linux linux_kernelfrom 4.10 before 4.19.325, from 4.20 before 5.4.287, from 5.5 before 5.10.231, from 5.11 before 5.15.174, from 5.16 before 6.1.120, from 6.2 before 6.6.64, from 6.7 before 6.11.11, from 6.12 before 6.12.2NVD

All scores

CISA-ADP3.3low CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-401

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: scsi: qedi: Fix a possible memory leak in qedi_alloc_and_init_sb() Hook "qedi_ops->common->sb_init = qed_sb_init" does not release the DMA memory sb_virt when it fails. Add dma_free_coherent() to free it. This is the same way as qedr_alloc_mem_sb() and qede_alloc_mem_sb().

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: scsi: qedi: Se corrige una posible pérdida de memoria en qedi_alloc_and_init_sb(). El gancho "qedi_ops->common->sb_init = qed_sb_init" no libera la memoria DMA sb_virt cuando falla. Agregue dma_free_coherent() para liberarla. Esta es la misma forma que qedr_alloc_mem_sb() y qede_alloc_mem_sb().

References

https://git.kernel.org/stable/c/4e48e5b26b3edc0e1dd329201ffc924a7a1f9337patch
https://git.kernel.org/stable/c/eaf92fad1f21be63427920c12f22227e5f757424patch
https://git.kernel.org/stable/c/a4d2011cbe039b25024831427b60ab91ee247066patch
https://git.kernel.org/stable/c/bb8b45883eb072adba297922b67d1467082ac880patch
https://git.kernel.org/stable/c/b778b5240485106abf665eb509cc01779ed0cb00patch
https://git.kernel.org/stable/c/10a6fc486ac40a410f0fb84cc15161238eccd20apatch
https://git.kernel.org/stable/c/cfc76acaf2c4b43d1e140f1e4cbde15adb540bc5patch
https://git.kernel.org/stable/c/20b775cf274cfbfa3da871a1108877e17b8b19e1patch
https://git.kernel.org/stable/c/95bbdca4999bc59a72ebab01663d421d6ce5775dpatch
https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html
https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html

Sources

SourceRecordLicence
CVE ListCVE-2024-56747 changed 2026-05-11CVE Terms of Use
NVDCVE-2024-56747 changed 2026-06-17Public domain