scsi: core: Fix possible memory leak if device_add() fails (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.16 % · percentile 5 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- NVD status
- Analyzed
Description
In the Linux kernel, the following vulnerability has been resolved: scsi: core: Fix possible memory leak if device_add() fails If device_add() returns error, the name allocated by dev_set_name() needs be freed. As the comment of device_add() says, put_device() should be used to decrease the reference count in the error path. So fix this by calling put_device(), then the name can be freed in kobject_cleanp().
Weaknesses (CWE)
- CWE-401 — Missing Release of Memory after Effective Lifetime
References
- https://git.kernel.org/stable/c/63956ad27a6882f01fea7c69e17823090f4c7b3f
- https://git.kernel.org/stable/c/06c5340858011aa1195aec43a776e3185fbf7f56
- https://git.kernel.org/stable/c/e12fac07f61caac9c5b186d827658b3470787619
- https://git.kernel.org/stable/c/aa9a76d5ffdecd3b52ac333eb89361b0c9fe04e8
- https://git.kernel.org/stable/c/6bc7f4c8c27d526f968788b8a985896755b1df35
- https://git.kernel.org/stable/c/b191ff1f075c4875f11271cbf0093e6e044a12aa
- https://git.kernel.org/stable/c/43c0e16d0c5ec59398b405f4c4aa5a076e656c3f
- https://git.kernel.org/stable/c/04b5b5cb0136ce970333a9c6cec7e46adba1ea3a
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | NVD · nvd@nist.gov (Primary) |
European references
- ENISA EUVD · EUVD-2023-59802
- GCVE · GCVE-0-2023-53174
CERT-FR advisories
- CERTFR-2025-AVI-1032 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2025-AVI-1009 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0921 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0895 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 2.6.26 < 4.14.323cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 4.15 < 4.19.292cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 4.20 < 5.4.254cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.5 < 5.10.191cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.11 < 5.15.127cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 5.16 < 6.1.46cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 6.2 < 6.4.11cpe:2.3:o:linux:linux_kernel:6.5:rc1:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:6.5:rc2:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:6.5:rc3:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:6.5:rc4:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:6.5:rc5:*:*:*:*:*:*
Affected products
| Product | Versions |
|---|---|
| Linux · Linux | affected ee959b00c335d7780136c5abda37809191fe52c3 < 63956ad27a6882f01fea7c69e17823090f4c7b3f ; affected ee959b00c335d7780136c5abda37809191fe52c3 < 06c5340858011aa1195aec43a776e3185fbf7f56 ; affected ee959b00c335d7780136c5abda37809191fe52c3 < e12fac07f61caac9c5b186d827658b3470787619 ; affected ee959b00c335d7780136c5abda37809191fe52c3 < aa9a76d5ffdecd3b52ac333eb89361b0c9fe04e8 ; affected ee959b00c335d7780136c5abda37809191fe52c3 < 6bc7f4c8c27d526f968788b8a985896755b1df35 ; affected ee959b00c335d7780136c5abda37809191fe52c3 < b191ff1f075c4875f11271cbf0093e6e044a12aa |
| Linux · Linux | affected 2.6.26 ; unaffected 0 < 2.6.26 ; unaffected 4.14.323 ≤ 4.14.* ; unaffected 4.19.292 ≤ 4.19.* ; unaffected 5.4.254 ≤ 5.4.* ; unaffected 5.10.191 ≤ 5.10.* |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |