CVE-2023-52480
ksmbd: fix race condition between session lookup and expire
Reported by linux · Published February 29, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 6.5.7, 6.1.57, 5.15.145 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | a6a9601ba995d0fec635324cb9fd8d14f9bea14e, 1fc8a2b14ef5223f8e0b95faba2ee0a6e4d0f99d, ea174a91893956450510945a0c5d1a10b5323656 |
| Linux | Linux | 6.4, 0, 6.1.57 |
| linux | linux_kernel | 6.1.29, 6.4, 6.4 |
| Linux | Linux | *, 6.1.57, 6.5.7 |
Timeline
- Feb 28, 2024 CVE Published
- Feb 29, 2024 EPSS Score (30 in total, the first dated here)
- Feb 29, 2024 PoC Published (4 in total, the first dated here)
- Oct 5, 2024 Coalition ESS Score (7 in total, the first dated here)
- Jan 25, 2026 Security Advisory (25 in total, the first dated here)
- Jan 25, 2026 CVE Updated
- Mar 30, 2026 Distribution Patch (23 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-52480
vulnetix vdb fixes CVE-2023-52480
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-52480/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart