CVE-2023-52480

ksmbd: fix race condition between session lookup and expire

HIGH
7
CVSS Score
Published: February 29, 2024 at 05:43 AM UTC
Updated: August 15, 2026 at 01:17 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7
Exploit prediction
EPSS 0.5%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix race condition between session lookup and expire Thread A + Thread B ksmbd_session_lookup | smb2_sess_setup sess = xa_load | | | xa_erase(&conn->sessions, sess->id); | | ksmbd_session_destroy(sess) --> kfree(sess) | // UAF! | sess->last_active = jiffies | + This patch add rwsem to fix race condition between ksmbd_session_lookup and ksmbd_expire_session.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 6.2.16v ≥ 6.3.25.15 ≤ v < 5.15.1455.16 ≤ v < 6.1.576.1.29 ≤ v < 6.1.576.2 ≤ v < 6.5.76.2.16 ≤ v < 6.36.3.2 ≤ v < 6.46.4 ≤ v < 6.5.76.4 ≤ v < 6.61fc8a2b14ef5223f8e0b95faba2ee0a6e4d0f99d6.1.296.2.166.3.26.6 rc16.6 rc26.6 rc36.6 rc46775ee7ef4b37c521aa4cf3730f54554c4875542750a2d772e9d9ff377fd32e3b6797bf2cd847a7aa6a9601ba995d0fec635324cb9fd8d14f9bea14eea174a91893956450510945a0c5d1a10b5323656
Vendor states this is fixed in 18ced78b0ebccc2d16f426143dc56ab3aad666be (fixed)
Vendor states this is fixed in 53ff5cf89142b978b1a5ca8dc4d4425e6a09745f (fixed)
Vendor states this is fixed in a2ca5fd3dbcc665e1169044fa0c9e3eba779202b (fixed)
Vendor states this is fixed in c77fd3e25a51ac92b0f1b347a96eff6a0b4f066f (fixed)
Affected range stops below 5.15.145, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 6.1.57 (unaffected)
Affected range stops below 6.3, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 6.4 (unaffected)
Vendor states this is fixed in 6.5.7 (unaffected)
Vendor states this is fixed in 6.6 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/18ced78b0ebccc2d16f426143dc56ab3aad666be
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/53ff5cf89142b978b1a5ca8dc4d4425e6a09745f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a2ca5fd3dbcc665e1169044fa0c9e3eba779202b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c77fd3e25a51ac92b0f1b347a96eff6a0b4f066f

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
HIGH
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-362

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card