CVE-2024-42307
cifs: fix potential null pointer use in destroy_workqueue in init_cifs error path
MEDIUM 5.5
At a glance
- Source
- NVD
- EPSS
- EPSS 0.21 % · percentile 11 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- NVD status
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: cifs: fix potential null pointer use in destroy_workqueue in init_cifs error path Dan Carpenter reported a Smack static checker warning: fs/smb/client/cifsfs.c:1981 init_cifs() error: we previously assumed 'serverclose_wq' could be null (see line 1895) The patch which introduced the serverclose workqueue used the wrong oredering in error paths in init_cifs() for freeing it on errors.
Weaknesses (CWE)
- CWE-476 — NULL Pointer Dereference
References
- https://git.kernel.org/stable/c/6018971710fdc7739f8655c1540832b4bb903671
- https://git.kernel.org/stable/c/160235efb4f9b55212dedff5de0094c606c4b303
- https://git.kernel.org/stable/c/3739d711246d8fbc95ff73dbdace9741cdce4777
- https://git.kernel.org/stable/c/193cc89ea0ca1da311877d2b4bb5e9f03bcc82a2
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
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-2024-39530
- GCVE · GCVE-0-2024-42307
CERT-FR advisories
- CERTFR-2025-AVI-0509 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0449 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0307 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0022 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2025-AVI-0002 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2024-AVI-1080 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 6.1.85 < 6.1.103cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 6.6.26 < 6.6.44cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 6.8.5 < 6.10.3
Affected products
| Product | Versions |
|---|---|
| Linux · Linux | affected 8c99dfb49bdc17edffc7ff3d46b400c8c291686c < 6018971710fdc7739f8655c1540832b4bb903671 ; affected 6f17163b9339fac92023a1d9bef22128db3b9a4b < 160235efb4f9b55212dedff5de0094c606c4b303 ; affected 173217bd73365867378b5e75a86f0049e1069ee8 < 3739d711246d8fbc95ff73dbdace9741cdce4777 ; affected 173217bd73365867378b5e75a86f0049e1069ee8 < 193cc89ea0ca1da311877d2b4bb5e9f03bcc82a2 ; affected 40a5d14c9d3b585d55d3209fb5efe202dcaac926 ; affected 6.1.85 < 6.1.103 |
| Linux · Linux | affected 6.9 ; unaffected 0 < 6.9 ; unaffected 6.1.103 ≤ 6.1.* ; unaffected 6.6.44 ≤ 6.6.* ; unaffected 6.10.3 ≤ 6.10.* ; unaffected 6.11 ≤ * |
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 |