PT-2024-3838 · Linux+9 · Linux Kernel+9

Paulo Alcantara

·

Published

2024-01-29

·

Updated

2026-05-26

·

CVE-2024-35870

CVSS v2.0

4.6

Medium

VectorAV:L/AC:L/Au:S/C:N/I:N/A:C
Name of the Vulnerable Software and Affected Versions Linux kernel versions prior to 6.6.37
Description The issue is related to a Use-After-Free (UAF) bug in the smb2 reconnect server() function. This bug occurs when smb2 reconnect server() accesses a session that is already being torn down by another thread executing cifs put smb ses(). The vulnerability can be exploited when the client has a connection to the server but no session, or when another thread sets @ses->ses status to something different than SES EXITING. To fix this, it is necessary to unconditionally set @ses->ses status to SES EXITING and prevent other threads from setting a new status while tearing it down.
Recommendations To resolve the issue, update the Linux kernel to version 6.6.37 or later. As a temporary workaround, consider disabling the smb2 reconnect server() function until a patch is available. Restrict access to the vulnerable module cifs to minimize the risk of exploitation. Avoid using the @ses->ipc parameter in the affected API endpoint until the issue is resolved.

Exploit

Fix

DoS

Buffer Overflow

NULL Pointer Dereference

Use After Free

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2024:4349
ALSA-2025_16880
BDU:2024-04218
BDU:2024-04221
BDU:2024-06991
BDU:2025-12228
CVE-2024-35870
DLA-4076-1
INFSA-2024_4349
MGASA-2024-0263
MGASA-2024-0266
OESA-2024-1737
OESA-2024-1738
RHSA-2024:4106
RHSA-2024:4108
RHSA-2024:4349
RHSA-2024_4349
RLSA-2024:4349
RXSA-2024:4349
SUSE-SU-2024:2008-1
SUSE-SU-2024:2019-1
SUSE-SU-2024:2135-1
SUSE-SU-2024:2190-1
SUSE-SU-2024:2203-1
SUSE-SU-2024:2360-1
SUSE-SU-2024:2381-1
SUSE-SU-2024:2561-1
SUSE-SU-2025:20008-1
SUSE-SU-2025:20028-1
USN-6893-1
USN-6893-2
USN-6893-3
USN-6918-1

Affected Products

Almalinux
Astra Linux
Debian
Linuxmint
Linux Kernel
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu