CVE-2024-42307

cifs: fix potential null pointer use in destroy_workqueue in init_cifs error path

MEDIUM
5.5
CVSS Score
Published: August 17, 2024 at 09:09 AM UTC
Updated: June 17, 2026 at 07:49 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 6.8.56.1.85 ≤ v < 6.1.1036.6.26 ≤ v < 6.6.446.8.5 ≤ v < 6.10.36.8.5 ≤ v < 6.96.9 ≤ v < 6.10.36.9 ≤ v < 6.11173217bd73365867378b5e75a86f0049e1069ee840a5d14c9d3b585d55d3209fb5efe202dcaac9266.1.856.6.266.8.56.96f17163b9339fac92023a1d9bef22128db3b9a4b8c99dfb49bdc17edffc7ff3d46b400c8c291686c
Vendor states this is fixed in 160235efb4f9b55212dedff5de0094c606c4b303 (fixed)
Vendor states this is fixed in 193cc89ea0ca1da311877d2b4bb5e9f03bcc82a2 (fixed)
Vendor states this is fixed in 3739d711246d8fbc95ff73dbdace9741cdce4777 (fixed)
Vendor states this is fixed in 6018971710fdc7739f8655c1540832b4bb903671 (fixed)
Vendor states this is fixed in 6.1.103 (unaffected)
Vendor states this is fixed in 6.10.3 (unaffected)
Vendor states this is fixed in 6.11 (unaffected)
Vendor states this is fixed in 6.6.44 (unaffected)
Vendor states this is fixed in 6.9 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/160235efb4f9b55212dedff5de0094c606c4b303
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/193cc89ea0ca1da311877d2b4bb5e9f03bcc82a2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3739d711246d8fbc95ff73dbdace9741cdce4777
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6018971710fdc7739f8655c1540832b4bb903671
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card