CVE Database›Document archive›CVE-2024-53186

CVE-2024-53186

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

Loading…

Severity

Important

Red Hat Product Security

7

CVSS 3.1

Review impact separately from score.

Published · December 27, 2024

Updated · September 12, 2026

Description

A flaw was found in ksmbd, the in-kernel SMB server for Linux. A race condition exists during SMB request handling, where a connection object (ksmbd_conn) can be prematurely freed while still being accessed by the workqueue handler. A remote unauthenticated attacker could exploit this use-after-free vulnerability to cause a kernel crash, leading to a denial of service on the affected system.

Statement

A race between ksmbd_conn_handler_loop() and handle_ksmbd_work() could free ksmbd_conn while the workqueue path still touches its waitqueue, causing a use-after-free and kernel crash. The patch adds a temporary reference (refcnt inc/dec) around the decrement of r_count and wakeup, preventing the UAF. Impact is remote denial of service against systems running and exposing ksmbd; no authentication is required, but reliable exploitation beyond DoS is non-trivial due to race timing.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 7
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H

CWE-416 · Use After Free