CVE-2024-42307

Source
https://cve.org/CVERecord?id=CVE-2024-42307
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-42307.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-42307
Downstream
Related
Published
2024-08-17T09:09:12.613Z
Modified
2026-03-12T02:16:59.494068Z
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:

cifs: fix potential null pointer use in destroyworkqueue in initcifs error path

Dan Carpenter reported a Smack static checker warning: fs/smb/client/cifsfs.c:1981 initcifs() error: we previously assumed 'serverclosewq' 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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42307.json"
}
References

Affected packages

Git / 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 Unknown introduced commit / All previous commits are affected
Last affected
40a5d14c9d3b585d55d3209fb5efe202dcaac926

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-42307.json"