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

Published Aug 17, 2024
·
Updated

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 initcifs() for freeing it on errors.

Affected Software

5 affected componentsFixes available
Linux Linux kernel>=6.1.85<6.1.103
Linux Linux kernel>=6.6.26<6.6.44
Linux Linux kernel>=6.8.5<6.10.3
debian/linux
5.10.223-15.10.234-16.1.129-16.1.133-16.12.22-1
debian/linux-6.1
6.1.129-1~deb11u1

Event History

Aug 17, 2024
CVE Published
via MITRE·09:09 AM
Data Sourced
via MITRE·09:09 AM
Description
Data Sourced
via NVD·09:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 13, 2025
Data Sourced
via Ubuntu·06:29 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-42307?

The severity of CVE-2024-42307 is classified as Medium due to the potential for causing a null pointer dereference.

2

How do I fix CVE-2024-42307?

To resolve CVE-2024-42307, update to the recommended versions of the Linux kernel that have addressed the vulnerability.

3

Which versions of the Linux kernel are affected by CVE-2024-42307?

CVE-2024-42307 affects Linux kernel versions between 6.1.85 and 6.1.103, as well as versions between 6.6.26 and 6.6.44, and between 6.8.5 and 6.10.3.

4

Who reported the CVE-2024-42307 vulnerability?

The vulnerability CVE-2024-42307 was reported by Dan Carpenter.

5

Does CVE-2024-42307 impact any specific distributions?

Yes, CVE-2024-42307 impacts various distributions using affected versions of the Linux kernel, including Debian.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203