CVE-2023-53358
published high CVSS 3.1 · 8.8ksmbd: fix racy issue under cocurrent smb2 tree disconnect
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux0626e6641f6b467447c81dd7678a69c66f7746cf to < b36295c17fb97424406f0c3ab321b1ccaabb9be8 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < bd80d35725a0cf4df9307bfe2f1a3b2cb983d8e6 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < dc1c17716c099c90948ebb83e2170dd75a3be6b6 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 39366b47a59d46af15ac57beb0996268bf911f6a · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 30210947a343b6b3ca13adc9bfc88e1543e16dd5 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 5.15.145 through 5.15.* (unaffected · semver) · 6.1.28 through 6.1.* (unaffected · semver) · 6.2.15 through 6.2.* (unaffected · semver) · 6.3.2 through 6.3.* (unaffected · semver) · 6.4 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 racy issue under cocurrent smb2 tree disconnect There is UAF issue under cocurrent smb2 tree disconnect. This patch introduce TREE_CONN_EXPIRE flags for tcon to avoid cocurrent access.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - ksmbd is the in-kernel SMB server reached over TCP/445; smb2_tree_disconnect() is invoked from handle_ksmbd_work() solely on SMB2_TREE_DISCONNECT PDUs from a remote peer, with no local access required. AC:L - The attacker controls both sides of the race by issuing concurrent SMB2_TREE_DISCONNECT requests for the same TreeId (parallel ksmbd-io workqueue items via SMB credits) and can retry indefinitely until both paths observe the same tcon before TREE_CONN_EXPIRE exists. PR:L - smb2_check_user_session() and smb2_get_ksmbd_tcon() gate TREE_DISCONNECT behind an established session and tree connect, so a low-privileged SMB share user (including guest where mapped) is required; this is post-authentication, not a pre-auth path. UI:N - The attacker performs negotiate, session setup, tree connect, and concurrent tree disconnects entirely on its own connections; no victim or administrator action is needed. S:U - The use-after-free corrupts ksmbd kernel heap state within the same host kernel security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - Concurrent disconnect double-frees struct ksmbd_tree_connect (share_conf/user pointers), a sprayable slab UAF that yields arbitrary kernel read primitives once the object is reclaimed, consistent with ZDI-CAN-20592 RCE classification. I:H - The second disconnect path reads tree_conn fields from freed memory then kfree()s again, enabling heap spray to hijack control flow / arbitrary write; ZDI rates this as remote code execution in kernel context. A:H - Even without full exploitation, the double-free/UAF reliably oopses or panics ksmbd worker threads and can be triggered repeatedly over the network to deny service.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.0 | high | CISA-ADP · adp | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 0626e6641f6b467447c81dd7678a69c66f7746cf to < b36295c17fb97424406f0c3ab321b1ccaabb9be8 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < bd80d35725a0cf4df9307bfe2f1a3b2cb983d8e6 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < dc1c17716c099c90948ebb83e2170dd75a3be6b6 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 39366b47a59d46af15ac57beb0996268bf911f6a (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 30210947a343b6b3ca13adc9bfc88e1543e16dd5 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.15 (affected)0 to < 5.15 (unaffected · semver)5.15.145 through 5.15.* (unaffected · semver)6.1.28 through 6.1.* (unaffected · semver)6.2.15 through 6.2.* (unaffected · semver)6.3.2 through 6.3.* (unaffected · semver)6.4 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-416 CWE-416 Use After Free
References
5- https://git.kernel.org/stable/c/30210947a343b6b3ca13adc9bfc88e1543e16dd5
- https://git.kernel.org/stable/c/39366b47a59d46af15ac57beb0996268bf911f6a
- https://git.kernel.org/stable/c/b36295c17fb97424406f0c3ab321b1ccaabb9be8
- https://git.kernel.org/stable/c/bd80d35725a0cf4df9307bfe2f1a3b2cb983d8e6
- https://git.kernel.org/stable/c/dc1c17716c099c90948ebb83e2170dd75a3be6b6
Provider assertions
2Linux · cna
ksmbd: fix racy issue under cocurrent smb2 tree disconnect
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 31673592b4cfb11a6be5bcf44d82de9120a903f4dd5fb5dbfc58a4ecdfb43e39
- Ingested
- 23 Sep 2026, 08:14:44 UTC
- Source record
- Official CVE record