What’s Vulnerable › Vulnerabilities

CVE-2024-42307: cifs: fix potential null pointer use in destroy_workqueue in init_cifs error path

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 products

How to fix

Upgrade to a fixed version: Linux kernel 6.1.103, 6.10.3, 6.6.44. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-42307 or the next vulnerability affects your stack