CVE-2024-26594
published critical CVSS 3.1 · 9.1ksmbd: validate mech token in session setup
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux0626e6641f6b467447c81dd7678a69c66f7746cf to < dd1de9268745f0eac83a430db7afc32cbd62e84b · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 6eb8015492bcc84e40646390e50a862b2c0529c9 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < a2b21ef1ea4cf632d19b3a7cc4d4245b8e63202a · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 5e6dfec95833edc54c48605a98365a7325e5541e · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 92e470163d96df8db6c4fa0f484e4a229edb903d · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 5.15.149 through 5.15.* (unaffected · semver) · 6.1.75 through 6.1.* (unaffected · semver) · 6.6.14 through 6.6.* (unaffected · semver) · 6.7.2 through 6.7.* (unaffected · semver) · 6.8 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-aws-5.15 | Advisory build | 5.15.0-1061.67~20.04.1 | USN-6766-3 |
| Ubuntu | focal | linux-aws-5.15-cloud-tools-5.15.0-1061 | Advisory build | 5.15.0-1061.67~20.04.1 | USN-6766-3 |
| Ubuntu | focal | linux-aws-5.15-headers-5.15.0-1061 | Advisory build | 5.15.0-1061.67~20.04.1 | USN-6766-3 |
| Ubuntu | focal | linux-aws-5.15-tools-5.15.0-1061 | Advisory build | 5.15.0-1061.67~20.04.1 | USN-6766-3 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | focal | linux-azure-5.15 | Advisory build | 5.15.0-1063.72~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-azure-5.15-cloud-tools-5.15.0-1063 | Advisory build | 5.15.0-1063.72~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-azure-5.15-headers-5.15.0-1063 | Advisory build | 5.15.0-1063.72~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-azure-5.15-tools-5.15.0-1063 | Advisory build | 5.15.0-1063.72~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-azure-fde-5.15 | Advisory build | 5.15.0-1063.72~20.04.1.1 | USN-6766-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1044-gkeop | Advisory build | 5.15.0-1044.51~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1054-ibm | Advisory build | 5.15.0-1054.57~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1058-intel-iotg | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1059-gcp | Advisory build | 5.15.0-1059.67~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1059-oracle | Advisory build | 5.15.0-1059.65~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-106-generic | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-2 |
| Ubuntu | focal | linux-buildinfo-5.15.0-106-generic-64k | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-2 |
| Ubuntu | focal | linux-buildinfo-5.15.0-106-generic-lpae | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-2 |
| Ubuntu | focal | linux-buildinfo-5.15.0-106-lowlatency | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-106-lowlatency-64k | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1061-aws | Advisory build | 5.15.0-1061.67~20.04.1 | USN-6766-3 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1063-azure | Advisory build | 5.15.0-1063.72~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1044-gkeop | Advisory build | 5.15.0-1044.51~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1058-intel-iotg | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-106-generic | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-2 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-106-lowlatency | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1061-aws | Advisory build | 5.15.0-1061.67~20.04.1 | USN-6766-3 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1063-azure | Advisory build | 5.15.0-1063.72~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-gcp-5.15 | Advisory build | 5.15.0-1059.67~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-gcp-5.15-headers-5.15.0-1059 | Advisory build | 5.15.0-1059.67~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-gcp-5.15-tools-5.15.0-1059 | Advisory build | 5.15.0-1059.67~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-gkeop-5.15 | Advisory build | 5.15.0-1044.51~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-gkeop-5.15-cloud-tools-5.15.0-1044 | Advisory build | 5.15.0-1044.51~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-gkeop-5.15-headers-5.15.0-1044 | Advisory build | 5.15.0-1044.51~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-gkeop-5.15-tools-5.15.0-1044 | Advisory build | 5.15.0-1044.51~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-headers-5.15.0-1044-gkeop | Advisory build | 5.15.0-1044.51~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-headers-5.15.0-1054-ibm | Advisory build | 5.15.0-1054.57~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-headers-5.15.0-1058-intel-iotg | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-headers-5.15.0-1059-gcp | Advisory build | 5.15.0-1059.67~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-headers-5.15.0-1059-oracle | Advisory build | 5.15.0-1059.65~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-headers-5.15.0-106-generic | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-2 |
| Ubuntu | focal | linux-headers-5.15.0-106-generic-64k | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-2 |
| Ubuntu | focal | linux-headers-5.15.0-106-generic-lpae | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-2 |
| Ubuntu | focal | linux-headers-5.15.0-106-lowlatency | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-headers-5.15.0-106-lowlatency-64k | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-headers-5.15.0-1061-aws | Advisory build | 5.15.0-1061.67~20.04.1 | USN-6766-3 |
| Ubuntu | focal | linux-headers-5.15.0-1063-azure | Advisory build | 5.15.0-1063.72~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-hwe-5.15 | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-2 |
| Ubuntu | focal | linux-hwe-5.15-cloud-tools-5.15.0-106 | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-2 |
| Ubuntu | focal | linux-hwe-5.15-cloud-tools-common | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-2 |
| Ubuntu | focal | linux-hwe-5.15-headers-5.15.0-106 | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-2 |
| Ubuntu | focal | linux-hwe-5.15-source-5.15.0 | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-2 |
| Ubuntu | focal | linux-hwe-5.15-tools-5.15.0-106 | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-2 |
| Ubuntu | focal | linux-hwe-5.15-tools-common | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-2 |
| Ubuntu | focal | linux-hwe-5.15-tools-host | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-2 |
| Ubuntu | focal | linux-ibm-5.15 | Advisory build | 5.15.0-1054.57~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-ibm-5.15-headers-5.15.0-1054 | Advisory build | 5.15.0-1054.57~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-ibm-5.15-source-5.15.0 | Advisory build | 5.15.0-1054.57~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-ibm-5.15-tools-5.15.0-1054 | Advisory build | 5.15.0-1054.57~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-image-5.15.0-106-generic | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-2 |
| Ubuntu | focal | linux-image-5.15.0-106-generic-lpae | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-2 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1044-gkeop | Advisory build | 5.15.0-1044.51~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1054-ibm | Advisory build | 5.15.0-1054.57~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1058-intel-iotg | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1059-gcp | Advisory build | 5.15.0-1059.67~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1059-oracle | Advisory build | 5.15.0-1059.65~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-106-generic | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-2 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-106-generic-64k | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-2 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-106-lowlatency | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-106-lowlatency-64k | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1061-aws | Advisory build | 5.15.0-1061.67~20.04.1 | USN-6766-3 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1063-azure | Advisory build | 5.15.0-1063.72~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1063-azure-fde | Advisory build | 5.15.0-1063.72~20.04.1.1 | USN-6766-1 |
| Ubuntu | focal | linux-intel-iotg-5.15 | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-cloud-tools-5.15.0-1058 | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-cloud-tools-common | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-headers-5.15.0-1058 | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-5.15.0-1058 | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-common | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-host | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15 | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-cloud-tools-5.15.0-106 | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-cloud-tools-common | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-headers-5.15.0-106 | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-tools-5.15.0-106 | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-tools-common | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-tools-host | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-modules-5.15.0-1044-gkeop | Advisory build | 5.15.0-1044.51~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-modules-5.15.0-1054-ibm | Advisory build | 5.15.0-1054.57~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-modules-5.15.0-1058-intel-iotg | Advisory build | 5.15.0-1058.64~20.04.1 | USN-6828-1 |
| Ubuntu | focal | linux-modules-5.15.0-1059-gcp | Advisory build | 5.15.0-1059.67~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-modules-5.15.0-1059-oracle | Advisory build | 5.15.0-1059.65~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-modules-5.15.0-106-generic | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-2 |
| Ubuntu | focal | linux-modules-5.15.0-106-generic-64k | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-2 |
| Ubuntu | focal | linux-modules-5.15.0-106-generic-lpae | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-2 |
| Ubuntu | focal | linux-modules-5.15.0-106-lowlatency | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-modules-5.15.0-106-lowlatency-64k | Advisory build | 5.15.0-106.116~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-modules-5.15.0-1061-aws | Advisory build | 5.15.0-1061.67~20.04.1 | USN-6766-3 |
| Ubuntu | focal | linux-modules-5.15.0-1063-azure | Advisory build | 5.15.0-1063.72~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1044-gkeop | Advisory build | 5.15.0-1044.51~20.04.1 | USN-6766-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1054-ibm | Advisory build | 5.15.0-1054.57~20.04.1 | USN-6766-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 mech token in session setup If client send invalid mech token in session setup request, ksmbd validate and make the error if it is invalid.
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 - ksmbd is the in-kernel SMB server listening on TCP/445, and the flaw is triggered entirely by fields in a remotely supplied SMB2 SESSION_SETUP PDU (SecurityBufferLength plus the SPNEGO mechToken). Any host that can reach the SMB port can drive the vulnerable path. AC:L - The attacker directly and independently controls both sides of the length mismatch — the ASN.1 mechToken size (which sizes the kmemdup_nul allocation) and SecurityBufferLength (which is used as the bound) — so a single crafted packet deterministically produces the overread with no race, no timing dependency, and no reliance on uncontrolled state. PR:N - smb2_check_user_session() explicitly skips session validation for SMB2_SESSION_SETUP, and this code runs during the NTLMSSP/SPNEGO handshake before any credential is verified, so a completely unauthenticated remote peer reaches it after NEGOTIATE. UI:N - The server processes SESSION_SETUP requests autonomously in its kernel worker thread; no local user or administrator action is needed beyond ksmbd already serving a share. S:U - The out-of-bounds access occurs in kernel memory and its effects stay within the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - With a mechToken sized to hold an authenticate_message header and SecurityBufferLength set to 65535, the attacker fully controls name_off/name_len and nt_off/nt_len, giving an arbitrary-offset heap read of up to ~64KB past a small slab object — far beyond a "few bytes" bound. The disclosed bytes are converted into the username and domain strings that reach ksmbd.mountd and the kernel log, and the domain string feeds the NTLMv2 HMAC comparison, forming a remote oracle for recovering adjacent heap contents. I:N - Every consumer of the mis-sized buffer was traced and all are reads; the only writes (conn->ntlmssp.client_flags, sess->sess_key via cifs_arc4_crypt bounded by CIFS_KEY_SIZE, and the kzalloc'd construct buffer) target correctly sized in-bounds destinations, so no out-of-bounds write or control-flow primitive exists. A:H - The attacker-chosen read offset of up to 65535 bytes past a kmalloc-8/kmalloc-96 object will readily walk off the end of the slab page into unmapped or poisoned memory, oopsing the ksmbd worker thread (and panicking immediately under KASAN/DEBUG_PAGEALLOC), and it can be retriggered on a fresh unauthenticated connection at will.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 0626e6641f6b467447c81dd7678a69c66f7746cf to < dd1de9268745f0eac83a430db7afc32cbd62e84b (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 6eb8015492bcc84e40646390e50a862b2c0529c9 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < a2b21ef1ea4cf632d19b3a7cc4d4245b8e63202a (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 5e6dfec95833edc54c48605a98365a7325e5541e (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 92e470163d96df8db6c4fa0f484e4a229edb903d (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.15 (affected)0 to < 5.15 (unaffected · semver)5.15.149 through 5.15.* (unaffected · semver)6.1.75 through 6.1.* (unaffected · semver)6.6.14 through 6.6.* (unaffected · semver)6.7.2 through 6.7.* (unaffected · semver)6.8 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/5e6dfec95833edc54c48605a98365a7325e5541e
- https://git.kernel.org/stable/c/6eb8015492bcc84e40646390e50a862b2c0529c9
- https://git.kernel.org/stable/c/92e470163d96df8db6c4fa0f484e4a229edb903d
- https://git.kernel.org/stable/c/a2b21ef1ea4cf632d19b3a7cc4d4245b8e63202a
- https://git.kernel.org/stable/c/dd1de9268745f0eac83a430db7afc32cbd62e84b
Provider assertions
3Linux · cna
ksmbd: validate mech token in session setup
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 20a3e86c76d04bd999050cc7c892101cda17288c13414b437c568bcd819c8195
- Ingested
- 23 Sep 2026, 08:20:20 UTC
- Source record
- Official CVE record