CVE-2023-52480

published 29 Feb 2024 · updated 17 Nov 2026

ksmbd: fix race condition between session lookup and expire

9.8CriticalCVSS 9.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 53ff5cf89142b978b1a5ca8dc4d4425e6a09745f, Kernel 6.3, Kernel 6.4 and 5 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel>=ea174a91893956450510945a0c5d1a10b5323656 <53ff5cf89142b978b1a5ca8dc4d4425e6a09745f, >=6.2.16 <6.3, >=6.3.2 <6.4, >=a6a9601ba995d0fec635324cb9fd8d14f9bea14e <c77fd3e25a51ac92b0f1b347a96eff6a0b4f066f, >=ea174a91893956450510945a0c5d1a10b5323656 <18ced78b0ebccc2d16f426143dc56ab3aad666be, =6.4, =6775ee7ef4b37c521aa4cf3730f54554c4875542, =750a2d772e9d9ff377fd32e3b6797bf2cd847a7a, >=1fc8a2b14ef5223f8e0b95faba2ee0a6e4d0f99d <a2ca5fd3dbcc665e1169044fa0c9e3eba779202b, >=6.1.29 <6.1.5753ff5cf89142b978b1a5ca8dc4d4425e6a09745f, 6.3, 6.4, c77fd3e25a51ac92b0f1b347a96eff6a0b4f066f, 18ced78b0ebccc2d16f426143dc56ab3aad666be, a2ca5fd3dbcc665e1169044fa0c9e3eba779202b, 6.1.57
linux-kernel: Kernel>=6.2.16 <6.3, >=6.3.2 <6.4, >=6.4.0 <6.5.7, >=6.1.29 <6.1.576.3, 6.4, 6.5.7, 6.1.57

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-52480 severity on Zeptric[![CVE-2023-52480](https://zeptric.io/badge/cve/CVE-2023-52480.svg)](https://zeptric.io/cve/CVE-2023-52480)