cbcvebase.
CVE-2023-52480
published 2024-02-29

CVE-2023-52480: In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix race condition between session lookup and expire Thread A + Thread B…

PriorityP428high7CVSS 3.1
AVLACHPRLUINSUCHIHAH
EPSS
0.18%
7.7th percentile
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

17 ranges
VendorProductVersion rangeFixed in
debianlinux< linux 6.1.64-1 (bookworm)linux 6.1.64-1 (bookworm)
linuxlinux
linuxlinux>= 0626e6641f6b467447c81dd7678a69c66f7746cf < c77fd3e25a51ac92b0f1b347a96eff6a0b4f066fc77fd3e25a51ac92b0f1b347a96eff6a0b4f066f
linuxlinux>= 0626e6641f6b467447c81dd7678a69c66f7746cf < a2ca5fd3dbcc665e1169044fa0c9e3eba779202ba2ca5fd3dbcc665e1169044fa0c9e3eba779202b
linuxlinux>= 0626e6641f6b467447c81dd7678a69c66f7746cf < 18ced78b0ebccc2d16f426143dc56ab3aad666be18ced78b0ebccc2d16f426143dc56ab3aad666be
linuxlinux>= 0626e6641f6b467447c81dd7678a69c66f7746cf < 53ff5cf89142b978b1a5ca8dc4d4425e6a09745f53ff5cf89142b978b1a5ca8dc4d4425e6a09745f
linuxlinux_kernel
linuxlinux_kernel
linuxlinux_kernel
linuxlinux_kernel
linuxlinux_kernel>= 0 < 6.1.64-16.1.64-1
linuxlinux_kernel>= 0 < 6.5.8-16.5.8-1
linuxlinux_kernel>= 0 < 6.5.8-16.5.8-1
linuxlinux_kernel>= 0 < 5.15.0-102.1125.15.0-102.112
linuxlinux_kernel>= 5.15 < 5.15.1455.15.145
linuxlinux_kernel>= 5.16 < 6.1.576.1.57
linuxlinux_kernel>= 6.2 < 6.5.76.5.7

CVSS provenance

nvdv3.17.0HIGHCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
osv8.1HIGH
vendor_ubuntu7.1HIGH
vendor_debian7.0HIGH
vendor_redhat7.0HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.