{"id":"CVE-2024-42307","summary":"cifs: fix potential null pointer use in destroy_workqueue in init_cifs error path","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ncifs: fix potential null pointer use in destroy_workqueue in init_cifs error path\n\nDan Carpenter reported a Smack static checker warning:\n   fs/smb/client/cifsfs.c:1981 init_cifs()\n   error: we previously assumed 'serverclose_wq' could be null (see line 1895)\n\nThe patch which introduced the serverclose workqueue used the wrong\noredering in error paths in init_cifs() for freeing it on errors.","modified":"2026-04-16T04:33:32.929426572Z","published":"2024-08-17T09:09:12.613Z","related":["SUSE-SU-2025:01620-1","SUSE-SU-2025:01640-1","SUSE-SU-2025:01919-1","SUSE-SU-2025:1177-1","SUSE-SU-2025:1178-1","SUSE-SU-2025:1180-1","SUSE-SU-2025:20190-1","SUSE-SU-2025:20192-1","SUSE-SU-2025:20260-1","SUSE-SU-2025:20270-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42307.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/160235efb4f9b55212dedff5de0094c606c4b303"},{"type":"WEB","url":"https://git.kernel.org/stable/c/193cc89ea0ca1da311877d2b4bb5e9f03bcc82a2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3739d711246d8fbc95ff73dbdace9741cdce4777"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6018971710fdc7739f8655c1540832b4bb903671"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42307.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42307"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8c99dfb49bdc17edffc7ff3d46b400c8c291686c"},{"fixed":"6018971710fdc7739f8655c1540832b4bb903671"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6f17163b9339fac92023a1d9bef22128db3b9a4b"},{"fixed":"160235efb4f9b55212dedff5de0094c606c4b303"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"173217bd73365867378b5e75a86f0049e1069ee8"},{"fixed":"3739d711246d8fbc95ff73dbdace9741cdce4777"},{"fixed":"193cc89ea0ca1da311877d2b4bb5e9f03bcc82a2"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"40a5d14c9d3b585d55d3209fb5efe202dcaac926"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42307.json"}}],"schema_version":"1.7.5"}