CVE-2023-52480CWE-362

CVE-2023-52480

Critical · published February 29, 2024

CVSS v3.1
9.8
EPSS
0%
Percentile
41.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00490 · 41.2th percentile
Weakness
CWE-362 · Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Published
2024-02-29T11:15Z
Affected products (7)
ProductVersionsFixed in
linux/linux_kernel≥ 5.15, < 5.15.1455.15.145
linux/linux_kernel≥ 5.16, < 6.1.576.1.57
linux/linux_kernel≥ 6.2, < 6.5.76.5.7
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (8)
EPSS history
Timeline
  • 29 FEB 05:43Z
    ksmbd: fix race condition between session lookup and expire
    cvelistv5