CVE-2024-42307

Source
https://cve.org/CVERecord?id=CVE-2024-42307
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-42307.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-42307
Downstream
BELL (1)
DEBIAN (1)
MGASA (2)
OESA (1)
SUSE (10)
UBUNTU (1)
Related
Published
2024-08-17T09:09:12Z
Modified
2026-10-20T10:31:09Z
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 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.

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
6.1.85
Fixed
6.1.103
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6.6.26
Fixed
6.6.44
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6.8.5
Fixed
6.9
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
40a5d14c9d3b585d55d3209fb5efe202dcaac926

Affected versions

v6.*
v6.1.100
v6.1.101
v6.1.102
v6.1.85
v6.1.86
v6.1.87
v6.1.88
v6.1.89
v6.1.90
v6.1.91
v6.1.92
v6.1.93
v6.1.94
v6.1.95
v6.1.96
v6.1.97
v6.1.98
v6.1.99
v6.6.26
v6.6.27
v6.6.28
v6.6.29
v6.6.30
v6.6.31
v6.6.32
v6.6.33
v6.6.34
v6.6.35
v6.6.36
v6.6.37
v6.6.38
v6.6.39
v6.6.40
v6.6.41
v6.6.42
v6.6.43
v6.8.10
v6.8.11
v6.8.12
v6.8.5
v6.8.6
v6.8.7
v6.8.8
v6.8.9

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
6.1.103
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.44
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.10.3

Database specific

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