CVE-2023-52442
published critical CVSS 3.1 · 9.1ksmbd: validate session id and tree id in compound request
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux0626e6641f6b467447c81dd7678a69c66f7746cf to < 017d85c94f02090a87f4a473dbe0d6ee0da72693 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < becb5191d1d5fdfca0198a2e37457bbbf4fe266f · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 4c2b350b2e269e3fd17bbfa42de1b42775b777ac · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 3df0411e132ee74a87aa13142dfd2b190275332e · 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.53 through 6.1.* (unaffected · semver) · 6.4.16 through 6.4.* (unaffected · semver) · 6.5 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 |
| Ubuntu | focal | linux-azure-5.15 | Advisory build | 5.15.0-1060.69~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-azure-5.15-cloud-tools-5.15.0-1060 | Advisory build | 5.15.0-1060.69~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-azure-5.15-headers-5.15.0-1060 | Advisory build | 5.15.0-1060.69~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-azure-5.15-tools-5.15.0-1060 | Advisory build | 5.15.0-1060.69~20.04.1 | USN-6725-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | focal | linux-azure-fde-5.15 | Advisory build | 5.15.0-1060.69~20.04.1.1 | USN-6725-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-102-generic | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-102-generic-64k | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-102-generic-lpae | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-102-lowlatency | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-102-lowlatency-64k | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1040-gkeop | Advisory build | 5.15.0-1040.46~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1050-ibm | Advisory build | 5.15.0-1050.53~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1052-intel-iotg | Advisory build | 5.15.0-1052.58~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1055-gcp | Advisory build | 5.15.0-1055.63~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1055-oracle | Advisory build | 5.15.0-1055.61~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1060-azure | Advisory build | 5.15.0-1060.69~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-102-generic | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-102-lowlatency | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1040-gkeop | Advisory build | 5.15.0-1040.46~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1052-intel-iotg | Advisory build | 5.15.0-1052.58~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1060-azure | Advisory build | 5.15.0-1060.69~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-gcp-5.15 | Advisory build | 5.15.0-1055.63~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-gcp-5.15-headers-5.15.0-1055 | Advisory build | 5.15.0-1055.63~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-gcp-5.15-tools-5.15.0-1055 | Advisory build | 5.15.0-1055.63~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-gkeop-5.15 | Advisory build | 5.15.0-1040.46~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-gkeop-5.15-cloud-tools-5.15.0-1040 | Advisory build | 5.15.0-1040.46~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-gkeop-5.15-headers-5.15.0-1040 | Advisory build | 5.15.0-1040.46~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-gkeop-5.15-tools-5.15.0-1040 | Advisory build | 5.15.0-1040.46~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-headers-5.15.0-102-generic | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-headers-5.15.0-102-generic-64k | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-headers-5.15.0-102-generic-lpae | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-headers-5.15.0-102-lowlatency | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-headers-5.15.0-102-lowlatency-64k | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-headers-5.15.0-1040-gkeop | Advisory build | 5.15.0-1040.46~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-headers-5.15.0-1050-ibm | Advisory build | 5.15.0-1050.53~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-headers-5.15.0-1052-intel-iotg | Advisory build | 5.15.0-1052.58~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-headers-5.15.0-1055-gcp | Advisory build | 5.15.0-1055.63~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-headers-5.15.0-1055-oracle | Advisory build | 5.15.0-1055.61~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-headers-5.15.0-1060-azure | Advisory build | 5.15.0-1060.69~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-hwe-5.15 | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-hwe-5.15-cloud-tools-5.15.0-102 | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-hwe-5.15-cloud-tools-common | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-hwe-5.15-headers-5.15.0-102 | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-hwe-5.15-source-5.15.0 | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-hwe-5.15-tools-5.15.0-102 | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-hwe-5.15-tools-common | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-hwe-5.15-tools-host | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-ibm-5.15 | Advisory build | 5.15.0-1050.53~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-ibm-5.15-headers-5.15.0-1050 | Advisory build | 5.15.0-1050.53~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-ibm-5.15-source-5.15.0 | Advisory build | 5.15.0-1050.53~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-ibm-5.15-tools-5.15.0-1050 | Advisory build | 5.15.0-1050.53~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-image-5.15.0-102-generic | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-image-5.15.0-102-generic-lpae | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-102-generic | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-102-generic-64k | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-102-lowlatency | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-102-lowlatency-64k | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1040-gkeop | Advisory build | 5.15.0-1040.46~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1050-ibm | Advisory build | 5.15.0-1050.53~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1052-intel-iotg | Advisory build | 5.15.0-1052.58~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1055-gcp | Advisory build | 5.15.0-1055.63~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1055-oracle | Advisory build | 5.15.0-1055.61~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1060-azure | Advisory build | 5.15.0-1060.69~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1060-azure-fde | Advisory build | 5.15.0-1060.69~20.04.1.1 | USN-6725-1 |
| Ubuntu | focal | linux-intel-iotg-5.15 | Advisory build | 5.15.0-1052.58~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-cloud-tools-5.15.0-1052 | Advisory build | 5.15.0-1052.58~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-cloud-tools-common | Advisory build | 5.15.0-1052.58~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-headers-5.15.0-1052 | Advisory build | 5.15.0-1052.58~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-5.15.0-1052 | Advisory build | 5.15.0-1052.58~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-common | Advisory build | 5.15.0-1052.58~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-host | Advisory build | 5.15.0-1052.58~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15 | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-cloud-tools-5.15.0-102 | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-cloud-tools-common | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-headers-5.15.0-102 | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-tools-5.15.0-102 | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-tools-common | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-tools-host | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-modules-5.15.0-102-generic | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-modules-5.15.0-102-generic-64k | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-modules-5.15.0-102-generic-lpae | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-modules-5.15.0-102-lowlatency | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-modules-5.15.0-102-lowlatency-64k | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-modules-5.15.0-1040-gkeop | Advisory build | 5.15.0-1040.46~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-modules-5.15.0-1050-ibm | Advisory build | 5.15.0-1050.53~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-modules-5.15.0-1052-intel-iotg | Advisory build | 5.15.0-1052.58~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-modules-5.15.0-1055-gcp | Advisory build | 5.15.0-1055.63~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-modules-5.15.0-1055-oracle | Advisory build | 5.15.0-1055.61~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-modules-5.15.0-1060-azure | Advisory build | 5.15.0-1060.69~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-102-generic | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1040-gkeop | Advisory build | 5.15.0-1040.46~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1050-ibm | Advisory build | 5.15.0-1050.53~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1052-intel-iotg | Advisory build | 5.15.0-1052.58~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1055-gcp | Advisory build | 5.15.0-1055.63~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1055-oracle | Advisory build | 5.15.0-1055.61~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1060-azure | Advisory build | 5.15.0-1060.69~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-modules-iwlwifi-5.15.0-102-generic | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-modules-iwlwifi-5.15.0-102-lowlatency | Advisory build | 5.15.0-102.112~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-modules-iwlwifi-5.15.0-1052-intel-iotg | Advisory build | 5.15.0-1052.58~20.04.1 | USN-6725-1 |
| Ubuntu | focal | linux-modules-iwlwifi-5.15.0-1055-gcp | Advisory build | 5.15.0-1055.63~20.04.1 | USN-6725-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: validate session id and tree id in compound request `smb2_get_msg()` in smb2_get_ksmbd_tcon() and smb2_check_user_session() will always return the first request smb2 header in a compound request. if `SMB2_TREE_CONNECT_HE` is the first command in compound request, will return 0, i.e. The tree id check is skipped. This patch use ksmbd_req_buf_next() to get current command in compound.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.1 / 10
- Severity
- critical
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
- Scenarios
- en: AV:N - The vulnerable code is in ksmbd (fs/smb/server/), the in-kernel SMB server reachable over TCP/445; a remote attacker triggers it by sending a crafted compound SMB2 request. AC:L - The attacker fully controls the compound request layout and can reliably place TREE_CONNECT (or CANCEL/LOGOFF) first so subsequent commands skip tree-id validation; no races or unpredictable conditions are required. PR:N - ZDI-24-227 states authentication is not required; the most severe reasonable deployment includes guest/anonymous ksmbd shares, and compound handling is reachable without verified credentials. UI:N - Exploitation requires only sending SMB2 packets to the ksmbd service; no victim user action is needed. S:U - Impact is confined to the host kernel/SMB authority (DoS and possible disclosure); this is not a VM escape, IOMMU bypass, or other cross-authority boundary change. C:H - ZDI classifies this as an information-disclosure vulnerability from improper chained-request validation; when uncertain between C:N (pure crash) and C:H, the higher severity is selected. I:N - The direct bug is skipped session/tree validation leading to NULL dereference and disclosure potential; it does not by itself provide a write or integrity-corruption primitive. A:H - Skipping tree validation leaves work->tcon NULL so subsequent compound commands (e.g. CREATE/OPEN) dereference NULL (tcon->share_conf), causing a kernel oops and denying service.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.5 | medium | CISA-ADP · adp | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 0626e6641f6b467447c81dd7678a69c66f7746cf to < 017d85c94f02090a87f4a473dbe0d6ee0da72693 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < becb5191d1d5fdfca0198a2e37457bbbf4fe266f (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 4c2b350b2e269e3fd17bbfa42de1b42775b777ac (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 3df0411e132ee74a87aa13142dfd2b190275332e (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.53 through 6.1.* (unaffected · semver)6.4.16 through 6.4.* (unaffected · semver)6.5 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-noinfo Not enough information
References
4Provider assertions
3Linux · cna
ksmbd: validate session id and tree id in compound request
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 094365fa75abe302e04bd18b949889240aeb40ad8c5ccdcc39d5953ffdfb2aef
- Ingested
- 23 Sep 2026, 08:14:33 UTC
- Source record
- Official CVE record