Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-53186

CRITICAL 9.8EPSS 43%

ksmbd: fix use-after-free in SMB request handling

Mitigation

  • Upgrade Linux to 6.11 or later.

Who should check

  • Anyone running Linux >= 18f06bacc197d4ac9b518ad1c69999bc3d83e7aa, < a96f9eb7add30ba0fafcfe7b7aca090978196800; >= e9dac92f4482a382e8c0fe1bc243da5fc3526b0c, < f20b77f7897e6aab9ce5527e6016ad2be5d70a33; >= ee426bfb9d09b29987369b897fe9b6485ac2be27, < 96261adb998a3b513468b6ce17dbec76be5507d4; >= ee426bfb9d09b29987369b897fe9b6485ac2be27, < 9a8c5d89d327ff58e9b2517f8a6afb4181d32c6e; 9fd3cde4628bcd3549ab95061f2bab74d2ed4f3b; >= 6.6.55, < 6.6.64; >= 6.11.3, < 6.11.11; >= 6.10.14, < 6.11
  • Anyone running Linux 6.12

Vulnerability facts

Affected
Linux >= 18f06bacc197d4ac9b518ad1c69999bc3d83e7aa, < a96f9eb7add30ba0fafcfe7b7aca090978196800; >= e9dac92f4482a382e8c0fe1bc243da5fc3526b0c, < f20b77f7897e6aab9ce5527e6016ad2be5d70a33; >= ee426bfb9d09b29987369b897fe9b6485ac2be27, < 96261adb998a3b513468b6ce17dbec76be5507d4; >= ee426bfb9d09b29987369b897fe9b6485ac2be27, < 9a8c5d89d327ff58e9b2517f8a6afb4181d32c6e; 9fd3cde4628bcd3549ab95061f2bab74d2ed4f3b; >= 6.6.55, < 6.6.64; >= 6.11.3, < 6.11.11; >= 6.10.14, < 6.11; Linux 6.12
Fixed in
Linux 96261adb998a3b513468b6ce17dbec76be5507d4, Linux 9a8c5d89d327ff58e9b2517f8a6afb4181d32c6e, Linux 6.6.64, Linux 6.11.11, Linux 6.11
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
9.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.61% chance of exploitation in 30 days (percentile 43, 2026-11-26)
CWE
CWE-362, CWE-416
Published
Modified

Description

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 for `conn->r_count` to reach zero: `wait_event(conn->r_count_q, atomic_read(&conn->r_count) == 0);` - Meanwhile, `handle_ksmbd_work()` decrements `conn->r_count` using `atomic_dec_return(&conn->r_count)`, and if it reaches zero, calls `ksmbd_conn_free()`, which frees `conn`. - However, after `handle_ksmbd_work()` decrements `conn->r_count`, it may still access `conn->r_count_q` in the following line: `waitqueue_active(&conn->r_count_q)` or `wake_up(&conn->r_count_q)` This results in a UAF, as `conn` has already been freed. The discovery of this UAF can be referenced in the following PR for syzkaller's support for SMB requests.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 18f06bacc197d4ac9b518ad1c69999bc3d83e7aa, < a96f9eb7add30ba0fafcfe7b7aca090978196800; >= e9dac92f4482a382e8c0fe1bc243da5fc3526b0c, < f20b77f7897e6aab9ce5527e6016ad2be5d70a33; >= ee426bfb9d09b29987369b897fe9b6485ac2be27, < 96261adb998a3b513468b6ce17dbec76be5507d4; >= ee426bfb9d09b29987369b897fe9b6485ac2be27, < 9a8c5d89d327ff58e9b2517f8a6afb4181d32c6e; 9fd3cde4628bcd3549ab95061f2bab74d2ed4f3b; >= 6.6.55, < 6.6.64; >= 6.11.3, < 6.11.11; >= 6.10.14, < 6.11—cvelist
Linux6.12—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-53186. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-53186.md
Affected: Linux >= 18f06bacc197d4ac9b518ad1c69999bc3d83e7aa, < a96f9eb7add30ba0fafcfe7b7aca090978196800; >= e9dac92f4482a382e8c0fe1bc243da5fc3526b0c, < f20b77f7897e6aab9ce5527e6016ad2be5d70a33; >= ee426bfb9d09b29987369b897fe9b6485ac2be27, < 96261adb998a3b513468b6ce17dbec76be5507d4; >= ee426bfb9d09b29987369b8…
Fixed in: Linux 96261adb998a3b513468b6ce17dbec76be5507d4, Linux 9a8c5d89d327ff58e9b2517f8a6afb4181d32c6e, Linux 6.6.64, Linux 6.11.11, Linux 6.11

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-53186 being exploited?

There is no confirmed exploitation: CVE-2024-53186 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.61% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-53186?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2024-53186?

Linux >= 18f06bacc197d4ac9b518ad1c69999bc3d83e7aa, < a96f9eb7add30ba0fafcfe7b7aca090978196800; >= e9dac92f4482a382e8c0fe1bc243da5fc3526b0c, < f20b77f7897e6aab9ce5527e6016ad2be5d70a33; >= ee426bfb9d09b29987369b897fe9b6485ac2be27, < 96261adb998a3b513468b6ce17dbec76be5507d4; >= ee426bfb9d09b29987369b897fe9b6485ac2be27, < 9a8c5d89d327ff58e9b2517f8a6afb4181d32c6e; 9fd3cde4628bcd3549ab95061f2bab74d2ed4f3b; >= 6.6.55, < 6.6.64; >= 6.11.3, < 6.11.11; >= 6.10.14, < 6.11; Linux 6.12.

Is there a fix for CVE-2024-53186?

Yes. Fixed in Linux 96261adb998a3b513468b6ce17dbec76be5507d4, Linux 9a8c5d89d327ff58e9b2517f8a6afb4181d32c6e, Linux 6.6.64, Linux 6.11.11, Linux 6.11. Upgrade Linux to 6.11 or later.

How do I check if I'm affected by CVE-2024-53186?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors