CVE-2023-52480
JSON

9.8critical

ksmbd: fix race condition between session lookup and expire

Severity
9.8critical CVSS:3.1 by Linux
Exploit likelihood
0.49% (higher than 43% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom a6a9601ba995d0fec635324cb9fd8d14f9bea14e before c77fd3e25a51ac92b0f1b347a96eff6a0b4f066f, from 1fc8a2b14ef5223f8e0b95faba2ee0a6e4d0f99d before a2ca5fd3dbcc665e1169044fa0c9e3eba779202b, from ea174a91893956450510945a0c5d1a10b5323656 before 18ced78b0ebccc2d16f426143dc56ab3aad666be, from ea174a91893956450510945a0c5d1a10b5323656 before 53ff5cf89142b978b1a5ca8dc4d4425e6a09745f, 750a2d772e9d9ff377fd32e3b6797bf2cd847a7a, 6775ee7ef4b37c521aa4cf3730f54554c4875542, from 6.1.29 before 6.1.57, from 6.2.16 before 6.3 and 2 more
Not affected: before 6.4, from 6.1.57 up to 6.1.*, from 6.5.7 up to 6.5.*, from 6.6 up to *
CVE List
linux linux_kernelfrom 5.15 before 5.15.145, from 5.16 before 6.1.57, from 6.2 before 6.5.7, 6.6NVD

All scores

Linux9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.0high CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-362

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: ksmbd: corrige la condición de ejecución entre la búsqueda de sesión y la caducidad del subproceso A + subproceso B ksmbd_session_lookup | smb2_sess_setup sess = xa_load | | | xa_erase(&conn->sesiones, sesión->id); | | ksmbd_session_destroy(sess) --> kfree(sess) | // ¡UAF! | sess->last_active = jiffies | + Este parche agrega rwsem para corregir la condición de ejecución entre ksmbd_session_lookup y ksmbd_expire_session.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-52480 changed 2026-08-15CVE Terms of Use
NVDCVE-2023-52480 changed 2026-08-15Public domain