Vulnerability in Linux kernel (CVE-2024-53186)
Summary
Vulnerability in Linux kernel (CVE-2024-53186). Successful exploitation can lead to full system takeover. Exploitable via ksmbd_conn.
Original description
The description as published by the source.
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix use-after-free in SMB request handling
A race condition exists between SMB request handling in
ksmbd_conn_handler_loop() and the freeing of ksmbd_conn in the
workqueue handler handle_ksmbd_work(). This leads to a UAF.
- KASAN: slab-use-after-free Read in handle_ksmbd_work
- KASAN: slab-use-after-free in rtlock_slowlock_locked
This race condition arises as follows:
ksmbd_conn_handler_loop()waits forconn->r_countto reach zero:
wait_event(conn->r_count_q, atomic_read(&conn->r_count) == 0);- Meanwhile,
handle_ksmbd_work()decrementsconn->r_countusing
atomic_dec_return(&conn->r_count), and if it reaches zero, calls
ksmbd_conn_free(), which freesconn. - However, after
handle_ksmbd_work()decrementsconn->r_count,
it may still accessconn->r_count_qin the following line:
waitqueue_active(&conn->r_count_q)orwake_up(&conn->r_count_q)
This results in a UAF, asconnhas already been freed.
The discovery of this UAF can be referenced in the following PR for
syzkaller's support for SMB requests.
Source: NIST National Vulnerability Database NVD
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2024-53186 has been found in Linux kernel.
Attackers can target a specific entry point like ksmbd_conn over the network to misuse the product.
Successful exploitation can lead to full system takeover. CVSS score: 9.8/10.
What to do: apply the vendor's official patched release.
If unsure, ask your IT team or search "Linux kernel CVE-2024-53186" on the vendor's site.
CVE-2024-53186 (Linux kernel) — CWE-362 / CVSS v3 9.8
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Attack surface: ksmbd_conn / conn
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (CWE-362) exists in Linux kernel. Attackers reach the vulnerable code path via ksmbd_conn without authentication.
Check the vendor advisory for the affected versions of Linux kernel. Attack surface: ksmbd_conn / conn.
Severity: Critical (CVSS 9.8/10). Successful exploitation can lead to full system takeover.
Update to the patched release per vendor advisory.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Audit SBOM/dependencies to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
Audit SBOM/dependencies for affected components.資産台帳・SBOM・依存マニフェストで Linux kernel を使っているサービスとバージョンを洗い出す。
-
2Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
Fix status by distribution
Fixed packages published by each distribution for this CVE
- BellSoft Alpaquita BELL-CVE-2024-53186 linux-lts Fixed in: 6.12.41-r0
- Debian DEBIAN-CVE-2024-53186 linux Fixed in: 6.12.3-1
- Ubuntu UBUNTU-CVE-2024-53186 linux-hwe-edge
References
- advisory github.com
- advisory nvd.nist.gov
- package git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org