Executive Summary

Informations
Name CVE-2024-53186 First vendor Publication 2024-12-27
Vendor Cve Last vendor Modification 2025-02-10

Security-Database Scoring CVSS v3

Cvss vector : CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Overall CVSS Score 7
Base Score 7 Environmental Score 7
impact SubScore 5.9 Temporal Score 7
Exploitabality Sub Score 1
 
Attack Vector Local Attack Complexity High
Privileges Required Low User Interaction None
Scope Unchanged Confidentiality Impact High
Integrity Impact High Availability Impact High
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector :
Cvss Base Score N/A Attack Range N/A
Cvss Impact Score N/A Attack Complexity N/A
Cvss Expoit Score N/A Authentication N/A
Calculate full CVSS 2.0 Vectors scores

Detail

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.

Original Source

Url : http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-53186

CWE : Common Weakness Enumeration

% Id Name
50 % CWE-416 Use After Free
50 % CWE-362 Race Condition

CPE : Common Platform Enumeration

TypeDescriptionCount
Application 8
Os 3700

Sources (Detail)

https://git.kernel.org/stable/c/96261adb998a3b513468b6ce17dbec76be5507d4
https://git.kernel.org/stable/c/9a8c5d89d327ff58e9b2517f8a6afb4181d32c6e
https://git.kernel.org/stable/c/a96f9eb7add30ba0fafcfe7b7aca090978196800
https://git.kernel.org/stable/c/f20b77f7897e6aab9ce5527e6016ad2be5d70a33
Source Url

Alert History

If you want to see full details history, please login or register.
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Date Informations
2025-06-26 02:37:54
  • Multiple Updates
2025-06-25 12:36:04
  • Multiple Updates
2025-06-24 02:42:33
  • Multiple Updates
2025-05-27 02:47:37
  • Multiple Updates
2025-03-29 03:43:48
  • Multiple Updates
2025-03-28 13:47:16
  • Multiple Updates
2025-03-28 03:21:35
  • Multiple Updates
2025-03-19 03:16:36
  • Multiple Updates
2025-03-18 03:29:35
  • Multiple Updates
2025-03-14 03:16:45
  • Multiple Updates
2025-03-06 14:13:17
  • Multiple Updates
2025-02-22 03:26:50
  • Multiple Updates
2025-02-11 17:20:39
  • Multiple Updates
2025-01-14 21:21:14
  • Multiple Updates
2024-12-27 17:20:29
  • First insertion