
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."