CVE-2026-99385
published critical CVSS 3.1 · 9.8smb: client: fix buffer overflow in SMB2_tcon()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1 to < a4e022f375a04cadca3f799f6157877961be5829 · 62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1 to < e17fe5c8bf3fca4852e497b7061e316d314d7c52 · 62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1 to < 85692a261042bab56fdfd51e10630f09ef5a5082 · 62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1 to < 0149377b312eeb136119223a7c05d55c4b24c76d · 62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1 to < 75fd4c72aa3dcfabb318144636f416be6796d423 · 62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1 to < acf25a7be39dccdbf60fdf3d437dd7832fa4b6d3 · 62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1 to < d26f7fbca42532c6c79efdceb4bd5198e1849314 · 62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1 to < 73cc469b0ff7551f8537ea919709973e6dc4f514 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux3.8 (affected) · 0 to < 3.8 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.61 through 6.18.* (unaffected · semver) · 7.3.2 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3538 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bookworm | linux-6.12 | Advisory build | 6.12.117-1~deb12u1 | DLA-4927-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| Amazon Linux | AL2023 | kernel6.18aarch64 | Listed in advisory | Not stated | ALAS2023-2026-3538 |
Show 17 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| Amazon Linux | AL2023 | kernel6.18src | Listed in advisory | Not stated | ALAS2023-2026-3538 |
| Amazon Linux | AL2023 | kernel6.18x86_64 | Listed in advisory | Not stated | ALAS2023-2026-3538 |
Description
In the Linux kernel, the following vulnerability has been resolved: smb: client: fix buffer overflow in SMB2_tcon() In SMB2_tcon(), unc_path is allocated with a fixed buffer size of MAX_SHARENAME_LENGTH * 2 bytes (672 bytes). However, the user-controlled UNC path (tree) length is passed to cifs_strtoUTF16(), which assumes the destination buffer is large enough and writes strlen(tree) + 1 UTF-16 code units. Commit 62a1a439e0fd ("cifs: clean up handling of unc= option") removed the length check on UNC mount options, allowing mount paths to exceed MAX_SHARENAME_LENGTH while retaining the fixed-size buffer allocation in SMB2_tcon(). Consequently, an oversized UNC string causes cifs_strtoUTF16() to write past the end of the heap object, resulting in a slab-out-of-bounds write. Furthermore, if a tree exceeds MAX_TREE_SIZE characters, strscpy() truncates it in cifs_tcon::tree_name, causing subsequent reconnects or failovers to fail. Fix this by first verifying that the length of tree does not exceed MAX_TREE_SIZE, returning -EINVAL if it does. Then, dynamically allocate unc_path based on the length of tree so that it safely accommodates all UTF-16 code units for paths within MAX_TREE_SIZE. [pc: remove unused MAX_SHARENAME_LENGTH]
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.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 - The oversized tree string is the NetworkAddress of an SMB2 FSCTL_DFS_GET_REFERRALS reply. parse_dfs_referrals() copies it with cifs_strndup_from_utf16(), dfs_parse_target_referral() stores it via smb3_parse_devname() as ctx->UNC, and cifs_get_tcon() or tree_connect_dfs_target() passes it to SMB2_tcon(). SMB2/3 over TCP/445 is routable. AC:L - The server sets the FSCTL_DFS_GET_REFERRALS NetworkAddress and can reset TCP. Signing stays off unless ctx->sign or CIFSSEC_MUST_SIGN is set, so cifs_enable_signing() leaves the session unsigned. SMB2_tcon() then always passes strlen(tree) to cifs_strtoUTF16() on a 672-byte allocation. PR:N - The attacker is the SMB server. With signing off, session setup completes on STATUS_SUCCESS without the server knowing the client's password, and the client then issues FSCTL_DFS_GET_REFERRALS on the IPC tcon. No client capability is checked on that receive path. UI:N - On an existing DFS mount, dfs_cache_refresh() replaces the cached target when the TTL expires. The server then resets TCP; smb2_reconnect_server() calls smb2_reconnect(), which calls cifs_tree_connect() and tree_connect_dfs_target() into SMB2_tcon() with no user action. S:U - The write lands in the host kernel heap inside SMB2_tcon(). That is the same security authority as the cifs client; it does not cross a guest-to-host or IOMMU boundary. C:H - A share longer than 511 characters makes cifs_strtoUTF16() spill past the kmalloc-1k object that holds the 672-byte unc_path buffer. Corrupting an adjacent allocation's pointer or length yields an out-of-bounds read. I:H - cifs_strtoUTF16() writes the server-chosen tree as UTF-16 past the 672-byte unc_path object into neighboring kmalloc-1k slots. That out-of-bounds write can corrupt heap metadata and hijack control flow. A:H - The slab out-of-bounds write in SMB2_tcon() oopses the kernel when it hits an unmapped or poisoned object, and the server can force it again on every reconnect.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1 to < a4e022f375a04cadca3f799f6157877961be5829 (affected · git)62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1 to < e17fe5c8bf3fca4852e497b7061e316d314d7c52 (affected · git)62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1 to < 85692a261042bab56fdfd51e10630f09ef5a5082 (affected · git)62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1 to < 0149377b312eeb136119223a7c05d55c4b24c76d (affected · git)62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1 to < 75fd4c72aa3dcfabb318144636f416be6796d423 (affected · git)62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1 to < acf25a7be39dccdbf60fdf3d437dd7832fa4b6d3 (affected · git)62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1 to < d26f7fbca42532c6c79efdceb4bd5198e1849314 (affected · git)62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1 to < 73cc469b0ff7551f8537ea919709973e6dc4f514 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 3.8 (affected)0 to < 3.8 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.61 through 6.18.* (unaffected · semver)7.3.2 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/0149377b312eeb136119223a7c05d55c4b24c76d
- https://git.kernel.org/stable/c/73cc469b0ff7551f8537ea919709973e6dc4f514
- https://git.kernel.org/stable/c/75fd4c72aa3dcfabb318144636f416be6796d423
- https://git.kernel.org/stable/c/85692a261042bab56fdfd51e10630f09ef5a5082
- https://git.kernel.org/stable/c/a4e022f375a04cadca3f799f6157877961be5829
- https://git.kernel.org/stable/c/acf25a7be39dccdbf60fdf3d437dd7832fa4b6d3
- https://git.kernel.org/stable/c/d26f7fbca42532c6c79efdceb4bd5198e1849314
- https://git.kernel.org/stable/c/e17fe5c8bf3fca4852e497b7061e316d314d7c52
Provider assertions
1Linux · cna
smb: client: fix buffer overflow in SMB2_tcon()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7b79f4e6f99d3f56600fb2cec980ec37d10fed0c00c1fb565d88c86b5b392a93
- Ingested
- 23 Nov 2026, 14:35:29 UTC
- Source record
- Official CVE record