CVE-2026-31610
publishedksmbd: fix mechToken leak when SPNEGO decode fails after token alloc
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxfad4161b5cd01a24202234976ebbb133f7adc0b5 to < ae9cdb29efed20ffdee9ff3b0bb72fb369c353da · fad4161b5cd01a24202234976ebbb133f7adc0b5 to < bd4a7fb04f06f419b0e93d8b52fe32067eb312d1 · fad4161b5cd01a24202234976ebbb133f7adc0b5 to < 745a535461bbb90a56d9357573c9f97a5c12abe1 · fad4161b5cd01a24202234976ebbb133f7adc0b5 to < dd577cb55588ec3fbc66af3621280306601c4192 · fad4161b5cd01a24202234976ebbb133f7adc0b5 to < dd53414e301beb915fe672dc4c4a51bafb917604 · fad4161b5cd01a24202234976ebbb133f7adc0b5 to < 269c800a7a7e363459291885b35f7bc72e231ed6 · fad4161b5cd01a24202234976ebbb133f7adc0b5 to < 6c8c44e6553b9f072f62d9875e567766eb293162 · fad4161b5cd01a24202234976ebbb133f7adc0b5 to < ad0057fb91218914d6c98268718ceb9d59b388e1 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 5.15.212 through 5.15.* (unaffected · semver) · 6.1.178 through 6.1.* (unaffected · semver) · 6.6.136 through 6.6.* (unaffected · semver) · 6.12.83 through 6.12.* (unaffected · semver) · 6.18.24 through 6.18.* (unaffected · semver) · 6.19.14 through 6.19.* (unaffected · semver) · 7.0.1 through 7.0.* (unaffected · semver) · 7.1 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 |
| Debian | bookworm | linux | Advisory build | 6.1.180-1 | DLA-4720-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.0.3-1.1 | OPENSUSE-SU-2026:10703-1 |
| Ubuntu | focal | linux-aws-5.15 | Advisory build | 5.15.0-1117.124~20.04.1 | USN-8875-1 |
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.180-1~deb11u1 | DLA-4723-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Debian | trixie | linux | Advisory build | 6.12.85-1 | DSA-6238-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.0.3-1.1 | OPENSUSE-SU-2026:10703-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.0.3-1.1 | OPENSUSE-SU-2026:10703-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.0.3-1.1 | OPENSUSE-SU-2026:10703-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.0.3-1.1 | OPENSUSE-SU-2026:10703-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.0.3-1.1 | OPENSUSE-SU-2026:10703-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.0.3-1.1 | OPENSUSE-SU-2026:10703-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.0.3-1.1 | OPENSUSE-SU-2026:10703-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.0.3-1.1 | OPENSUSE-SU-2026:10703-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.0.3-1.1 | OPENSUSE-SU-2026:10703-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.0.3-1.1 | OPENSUSE-SU-2026:10703-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.0.3-1.1 | OPENSUSE-SU-2026:10703-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.0.3-1.1 | OPENSUSE-SU-2026:10703-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.0.3-1.1 | OPENSUSE-SU-2026:10703-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.0.3-1.1 | OPENSUSE-SU-2026:10703-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.0.3-1.1 | OPENSUSE-SU-2026:10703-1 |
| Ubuntu | focal | linux-aws-5.15-cloud-tools-5.15.0-1117 | Advisory build | 5.15.0-1117.124~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-aws-5.15-headers-5.15.0-1117 | Advisory build | 5.15.0-1117.124~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-aws-5.15-tools-5.15.0-1117 | Advisory build | 5.15.0-1117.124~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-azure-5.15 | Advisory build | 5.15.0-1123.132~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-azure-5.15-cloud-tools-5.15.0-1123 | Advisory build | 5.15.0-1123.132~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-azure-5.15-headers-5.15.0-1123 | Advisory build | 5.15.0-1123.132~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-azure-5.15-tools-5.15.0-1123 | Advisory build | 5.15.0-1123.132~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-azure-fde-5.15 | Advisory build | 5.15.0-1122.131~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-azure-fde-5.15-cloud-tools-5.15.0-1122 | Advisory build | 5.15.0-1122.131~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-azure-fde-5.15-headers-5.15.0-1122 | Advisory build | 5.15.0-1122.131~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-azure-fde-5.15-tools-5.15.0-1122 | Advisory build | 5.15.0-1122.131~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1070-nvidia-tegra | Advisory build | 5.15.0-1070.72~20.04.1 | USN-8963-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1070-nvidia-tegra-rt | Advisory build | 5.15.0-1070.72~20.04.1 | USN-8963-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1111-ibm | Advisory build | 5.15.0-1111.115~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1112-intel-iotg | Advisory build | 5.15.0-1112.118~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1114-oracle | Advisory build | 5.15.0-1114.120~20.04.1 | USN-8879-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1117-aws | Advisory build | 5.15.0-1117.124~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1118-gcp | Advisory build | 5.15.0-1118.128~20.04.1 | USN-8878-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1122-azure-fde | Advisory build | 5.15.0-1122.131~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1123-azure | Advisory build | 5.15.0-1123.132~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-195-lowlatency | Advisory build | 5.15.0-195.205~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-195-lowlatency-64k | Advisory build | 5.15.0-195.205~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-198-generic | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-198-generic-64k | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-198-generic-lpae | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1112-intel-iotg | Advisory build | 5.15.0-1112.118~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1117-aws | Advisory build | 5.15.0-1117.124~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1122-azure-fde | Advisory build | 5.15.0-1122.131~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1123-azure | Advisory build | 5.15.0-1123.132~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-195-lowlatency | Advisory build | 5.15.0-195.205~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-198-generic | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-gcp-5.15 | Advisory build | 5.15.0-1118.128~20.04.1 | USN-8878-1 |
| Ubuntu | focal | linux-gcp-5.15-headers-5.15.0-1118 | Advisory build | 5.15.0-1118.128~20.04.1 | USN-8878-1 |
| Ubuntu | focal | linux-gcp-5.15-tools-5.15.0-1118 | Advisory build | 5.15.0-1118.128~20.04.1 | USN-8878-1 |
| Ubuntu | focal | linux-headers-5.15.0-1070-nvidia-tegra | Advisory build | 5.15.0-1070.72~20.04.1 | USN-8963-1 |
| Ubuntu | focal | linux-headers-5.15.0-1070-nvidia-tegra-rt | Advisory build | 5.15.0-1070.72~20.04.1 | USN-8963-1 |
| Ubuntu | focal | linux-headers-5.15.0-1111-ibm | Advisory build | 5.15.0-1111.115~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-headers-5.15.0-1112-intel-iotg | Advisory build | 5.15.0-1112.118~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-headers-5.15.0-1114-oracle | Advisory build | 5.15.0-1114.120~20.04.1 | USN-8879-1 |
| Ubuntu | focal | linux-headers-5.15.0-1117-aws | Advisory build | 5.15.0-1117.124~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-headers-5.15.0-1118-gcp | Advisory build | 5.15.0-1118.128~20.04.1 | USN-8878-1 |
| Ubuntu | focal | linux-headers-5.15.0-1122-azure-fde | Advisory build | 5.15.0-1122.131~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-headers-5.15.0-1123-azure | Advisory build | 5.15.0-1123.132~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-headers-5.15.0-195-lowlatency | Advisory build | 5.15.0-195.205~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-headers-5.15.0-195-lowlatency-64k | Advisory build | 5.15.0-195.205~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-headers-5.15.0-198-generic | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-headers-5.15.0-198-generic-64k | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-headers-5.15.0-198-generic-lpae | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-hwe-5.15 | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-hwe-5.15-cloud-tools-5.15.0-198 | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-hwe-5.15-headers-5.15.0-198 | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-hwe-5.15-tools-5.15.0-198 | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-ibm-5.15 | Advisory build | 5.15.0-1111.115~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-ibm-5.15-headers-5.15.0-1111 | Advisory build | 5.15.0-1111.115~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-ibm-5.15-source-5.15.0 | Advisory build | 5.15.0-1111.115~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-ibm-5.15-tools-5.15.0-1111 | Advisory build | 5.15.0-1111.115~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-image-5.15.0-198-generic | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-image-5.15.0-198-generic-lpae | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1070-nvidia-tegra | Advisory build | 5.15.0-1070.72~20.04.1 | USN-8963-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1070-nvidia-tegra-rt | Advisory build | 5.15.0-1070.72~20.04.1 | USN-8963-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1111-ibm | Advisory build | 5.15.0-1111.115~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1112-intel-iotg | Advisory build | 5.15.0-1112.118~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1114-oracle | Advisory build | 5.15.0-1114.120~20.04.1 | USN-8879-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1117-aws | Advisory build | 5.15.0-1117.124~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1118-gcp | Advisory build | 5.15.0-1118.128~20.04.1 | USN-8878-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1122-azure-fde | Advisory build | 5.15.0-1122.131~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1123-azure | Advisory build | 5.15.0-1123.132~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-195-lowlatency | Advisory build | 5.15.0-195.205~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-195-lowlatency-64k | Advisory build | 5.15.0-195.205~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-198-generic | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-198-generic-64k | Advisory build | 5.15.0-198.208~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-intel-iotg-5.15 | Advisory build | 5.15.0-1112.118~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-cloud-tools-5.15.0-1112 | Advisory build | 5.15.0-1112.118~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-cloud-tools-common | Advisory build | 5.15.0-1112.118~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-headers-5.15.0-1112 | Advisory build | 5.15.0-1112.118~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-5.15.0-1112 | Advisory build | 5.15.0-1112.118~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-common | Advisory build | 5.15.0-1112.118~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-host | Advisory build | 5.15.0-1112.118~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15 | Advisory build | 5.15.0-195.205~20.04.1 | USN-8875-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-cloud-tools-5.15.0-195 | Advisory build | 5.15.0-195.205~20.04.1 | USN-8875-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: fix mechToken leak when SPNEGO decode fails after token alloc The kernel ASN.1 BER decoder calls action callbacks incrementally as it walks the input. When ksmbd_decode_negTokenInit() reaches the mechToken [2] OCTET STRING element, ksmbd_neg_token_alloc() allocates conn->mechToken immediately via kmemdup_nul(). If a later element in the same blob is malformed, then the decoder will return nonzero after the allocation is already live. This could happen if mechListMIC [3] overrunse the enclosing SEQUENCE. decode_negotiation_token() then sets conn->use_spnego = false because both the negTokenInit and negTokenTarg grammars failed. The cleanup at the bottom of smb2_sess_setup() is gated on use_spnego: if (conn->use_spnego && conn->mechToken) { kfree(conn->mechToken); conn->mechToken = NULL; } so the kfree is skipped, causing the mechToken to never be freed. This codepath is reachable pre-authentication, so untrusted clients can cause slow memory leaks on a server without even being properly authenticated. Fix this up by not checking check for use_spnego, as it's not required, so the memory will always be properly freed. At the same time, always free the memory in ksmbd_conn_free() incase some other failure path forgot to free it.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | fad4161b5cd01a24202234976ebbb133f7adc0b5 to < ae9cdb29efed20ffdee9ff3b0bb72fb369c353da (affected · git)fad4161b5cd01a24202234976ebbb133f7adc0b5 to < bd4a7fb04f06f419b0e93d8b52fe32067eb312d1 (affected · git)fad4161b5cd01a24202234976ebbb133f7adc0b5 to < 745a535461bbb90a56d9357573c9f97a5c12abe1 (affected · git)fad4161b5cd01a24202234976ebbb133f7adc0b5 to < dd577cb55588ec3fbc66af3621280306601c4192 (affected · git)fad4161b5cd01a24202234976ebbb133f7adc0b5 to < dd53414e301beb915fe672dc4c4a51bafb917604 (affected · git)fad4161b5cd01a24202234976ebbb133f7adc0b5 to < 269c800a7a7e363459291885b35f7bc72e231ed6 (affected · git)fad4161b5cd01a24202234976ebbb133f7adc0b5 to < 6c8c44e6553b9f072f62d9875e567766eb293162 (affected · git)fad4161b5cd01a24202234976ebbb133f7adc0b5 to < ad0057fb91218914d6c98268718ceb9d59b388e1 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.15 (affected)0 to < 5.15 (unaffected · semver)5.15.212 through 5.15.* (unaffected · semver)6.1.178 through 6.1.* (unaffected · semver)6.6.136 through 6.6.* (unaffected · semver)6.12.83 through 6.12.* (unaffected · semver)6.18.24 through 6.18.* (unaffected · semver)6.19.14 through 6.19.* (unaffected · semver)7.0.1 through 7.0.* (unaffected · semver)7.1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/269c800a7a7e363459291885b35f7bc72e231ed6
- https://git.kernel.org/stable/c/6c8c44e6553b9f072f62d9875e567766eb293162
- https://git.kernel.org/stable/c/745a535461bbb90a56d9357573c9f97a5c12abe1
- https://git.kernel.org/stable/c/ad0057fb91218914d6c98268718ceb9d59b388e1
- https://git.kernel.org/stable/c/ae9cdb29efed20ffdee9ff3b0bb72fb369c353da
- https://git.kernel.org/stable/c/bd4a7fb04f06f419b0e93d8b52fe32067eb312d1
- https://git.kernel.org/stable/c/dd53414e301beb915fe672dc4c4a51bafb917604
- https://git.kernel.org/stable/c/dd577cb55588ec3fbc66af3621280306601c4192
Provider assertions
1Linux · cna
ksmbd: fix mechToken leak when SPNEGO decode fails after token alloc
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 536bef8e268d793338c1dec13e6db22aea788e0d067c7ff4cf453f58015275fa
- Ingested
- 23 Sep 2026, 09:09:43 UTC
- Source record
- Official CVE record