CVE-2024-42307
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-42307 addresses a potential null pointer dereference vulnerability in the Linux kernel's CIFS (Common Internet File System) implementation. The issue was discovered in the error handling path of the init_cifs function, specifically related to the serverclose workqueue cleanup. The vulnerability affects Linux kernel versions from 6.1.85 up to 6.1.103, 6.6.26 up to 6.6.44, and 6.8.5 up to 6.10.3 (NVD).

Technical details

The vulnerability stems from incorrect ordering in error paths within the initcifs() function for freeing the serverclose workqueue. Dan Carpenter identified this issue through a Smack static checker warning in fs/smb/client/cifsfs.c:1981, where it was found that serverclosewq could potentially be null at line 1895. The vulnerability has been assigned a CVSS v3.1 base score of 5.5 (Medium) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability could lead to a null pointer dereference in the destroy_workqueue function during the CIFS module initialization error path. This could potentially result in a system crash or denial of service condition when the CIFS filesystem module is being loaded or unloaded (Kernel Patch).

Mitigation and workarounds

The vulnerability has been fixed through patches that correct the ordering of workqueue cleanup in the error handling path. The fix has been backported to affected stable kernel versions. Users should update to Linux kernel versions 6.1.103 or later, 6.6.44 or later, or 6.10.3 or later to address this vulnerability (Debian Security).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40343MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-iot
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • kernel-rt-devel-matched
NoYesDec 09, 2025
CVE-2025-40340MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-hwe
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-core
NoYesDec 09, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • libperf-devel
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management