CVE-2024-53186
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-53186 is a race condition vulnerability discovered in the Linux kernel's ksmbd module, specifically affecting SMB request handling. The vulnerability was disclosed on December 27, 2024, and affects Linux kernel versions from 6.6.55 up to 6.6.64, 6.10.14 up to 6.11, 6.11.3 up to 6.11.11, and 6.12 up to 6.12.2. The issue exists between SMB request handling in ksmbd_conn_handler_loop() and the freeing of ksmbd_conn in the workqueue handler handle_ksmbd_work() (NVD).

Technical details

The vulnerability is characterized by a race condition that leads to a Use-After-Free (UAF) condition. The race condition occurs when ksmbd_conn_handler_loop() waits for conn->r_count to reach zero while handle_ksmbd_work() decrements conn->r_count. If conn->r_count reaches zero, ksmbd_conn_free() is called to free conn. However, after decrementing conn->r_count, the code may still attempt to access conn->r_count_q through waitqueue_active(&conn->r_count_q) or wake_up(&conn->r_count_q) operations, resulting in a UAF condition. The vulnerability has been assigned a CVSS v3.1 base score of 7.0 (High) with vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability can lead to a Use-After-Free condition, which could potentially result in system crashes, memory corruption, or privilege escalation. The high CVSS score indicates that successful exploitation could lead to complete compromise of system confidentiality, integrity, and availability, though exploitation requires local access and is considered technically complex (NVD).

Mitigation and workarounds

The vulnerability has been patched in the Linux kernel. The fix involves adding proper reference counting to prevent the race condition by implementing atomic operations on the connection reference count. The patch has been merged into multiple kernel versions and is available through the kernel's stable release channels (Kernel Patch).

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-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • linux-gcp
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-core
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-uki-virt
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-modules-extra
NoYesJan 14, 2026

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