Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2023-52480

published critical CVSS 3.1 · 9.8

ksmbd: fix race condition between session lookup and expire

Published
29 Feb 2024, 05:43:12 UTC
Updated
15 Aug 2026, 12:23:49 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxa6a9601ba995d0fec635324cb9fd8d14f9bea14e to < c77fd3e25a51ac92b0f1b347a96eff6a0b4f066f · 1fc8a2b14ef5223f8e0b95faba2ee0a6e4d0f99d to < a2ca5fd3dbcc665e1169044fa0c9e3eba779202b · ea174a91893956450510945a0c5d1a10b5323656 to < 18ced78b0ebccc2d16f426143dc56ab3aad666be · ea174a91893956450510945a0c5d1a10b5323656 to < 53ff5cf89142b978b1a5ca8dc4d4425e6a09745f · 750a2d772e9d9ff377fd32e3b6797bf2cd847a7a · 6775ee7ef4b37c521aa4cf3730f54554c4875542 · 6.1.29 to < 6.1.57 · 6.2.16 to < 6.3 · 6.3.2 to < 6.4 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.4 (affected) · 0 to < 6.4 (unaffected · semver) · 6.1.57 through 6.1.* (unaffected · semver) · 6.5.7 through 6.5.* (unaffected · semver) · 6.6 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
9.8 / 10
Severity
critical
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:N - ksmbd is the in-kernel SMB server on TCP/445; the UAF is reached by processing remotely supplied SMB2 SESSION_SETUP and concurrent session-bearing PDUs in ksmbd worker threads, with no local access required. AC:L - The attacker controls both sides of the race by sending concurrent requests on the same connection—one path calls unlocked ksmbd_session_lookup while another SESSION_SETUP(SessionId=0) runs ksmbd_session_register→ksmbd_expire_session→kfree—and can retry freely via the ksmbd-io workqueue. PR:N - SESSION_SETUP with SessionId=0 creates an SMB2_SESSION_IN_PROGRESS session before any credential check, and expire destroys any non-VALID session; smb2_check_user_session still enters ksmbd_session_lookup and performs the UAF write before the VALID-state filter, so no authentication is required. UI:N - Exploitation is driven entirely by the remote attacker’s SMB traffic to ksmbd; no local user or administrator action is needed beyond ksmbd already listening. S:U - This is a standard in-kernel use-after-free within the host kernel’s security authority and does not cross a VM, IOMMU, or sandbox boundary. C:H - The race is a use-after-free on struct ksmbd_session; reclaiming the freed object (including forging state==VALID so lookup_all returns a dangling sess) yields a kernel read primitive over session keys, pointers, and adjacent heap. I:H - ksmbd_session_lookup performs a write of jiffies into freed session memory, and a reclaimed fake session is then consumed by later SMB command handling—an exploitable UAF write/control-flow hijack primitive in ring 0. A:H - Even without full exploitation, the UAF read/write on a kfree’d session crashes ksmbd worker threads (KASAN slab-UAF / oops/panic), and an unauthenticated attacker can retrigger the race indefinitely.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux a6a9601ba995d0fec635324cb9fd8d14f9bea14e to < c77fd3e25a51ac92b0f1b347a96eff6a0b4f066f (affected · git)1fc8a2b14ef5223f8e0b95faba2ee0a6e4d0f99d to < a2ca5fd3dbcc665e1169044fa0c9e3eba779202b (affected · git)ea174a91893956450510945a0c5d1a10b5323656 to < 18ced78b0ebccc2d16f426143dc56ab3aad666be (affected · git)ea174a91893956450510945a0c5d1a10b5323656 to < 53ff5cf89142b978b1a5ca8dc4d4425e6a09745f (affected · git)750a2d772e9d9ff377fd32e3b6797bf2cd847a7a (affected · git)6775ee7ef4b37c521aa4cf3730f54554c4875542 (affected · git)6.1.29 to < 6.1.57 (affected · semver)6.2.16 to < 6.3 (affected · semver)6.3.2 to < 6.4 (affected · semver)Default: unaffected Linux · cna
Linux Linux 6.4 (affected)0 to < 6.4 (unaffected · semver)6.1.57 through 6.1.* (unaffected · semver)6.5.7 through 6.5.* (unaffected · semver)6.6 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

4

Provider assertions

3

Linux · cna

ksmbd: fix race condition between session lookup and expire

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
29e7de4d7854f8d4b3dd6a56dec661a881821344a4a39dbd7bf50fa602f084cd
Ingested
23 Sep 2026, 08:14:33 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected