CVE-2023-52480

ksmbd: fix race condition between session lookup and expire

9.8 critical EPSS 0.49%

Published 29 Feb 2024 Updated 15 Aug 2026 CNA: Linux

Check your servers for CVE-2023-52480

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-52480 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

9.8 critical CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.49%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 43.7% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Sep 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from a6a9601ba995d0fec635324cb9fd8d14f9bea14e, before c77fd3e25a51ac92b0f1b347a96eff6a0b4f066f
affected from 1fc8a2b14ef5223f8e0b95faba2ee0a6e4d0f99d, before a2ca5fd3dbcc665e1169044fa0c9e3eba779202b
affected from ea174a91893956450510945a0c5d1a10b5323656, before 18ced78b0ebccc2d16f426143dc56ab3aad666be
affected from ea174a91893956450510945a0c5d1a10b5323656, before 53ff5cf89142b978b1a5ca8dc4d4425e6a09745f
affected 750a2d772e9d9ff377fd32e3b6797bf2cd847a7a
affected 6775ee7ef4b37c521aa4cf3730f54554c4875542
affected from 6.1.29, before 6.1.57
affected from 6.2.16, before 6.3
affected from 6.3.2, before 6.4
Other versions: unaffected
Linux
affected 6.4
unaffected before 6.4
unaffected from 6.1.57 up to and including 6.1.*
unaffected from 6.5.7 up to and including 6.5.*
unaffected 6.6 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-52480 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-52480

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2023-52480
trivy image --scanners vuln IMAGE | grep CVE-2023-52480

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2023-52480 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.