CVE-2026-99385 (GCVE-0-2026-99385)
Vulnerability from cvelistv5 – Published: 2026-11-19 14:23 – Updated: 2026-11-22 11:07
VLAI
EPSS
VEX
Title
smb: client: fix buffer overflow in SMB2_tcon()
Summary
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]
Severity
9.8 (Critical)
Assigner
References
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| Linux | Linux |
Affected:
62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1 , < 75fd4c72aa3dcfabb318144636f416be6796d423
(git)
Affected: 62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1 , < acf25a7be39dccdbf60fdf3d437dd7832fa4b6d3 (git) Affected: 62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1 , < d26f7fbca42532c6c79efdceb4bd5198e1849314 (git) Affected: 62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1 , < 73cc469b0ff7551f8537ea919709973e6dc4f514 (git) |
|
| Linux | Linux |
Affected:
3.8
Unaffected: 0 , < 3.8 (semver) Unaffected: 6.12.117 , ≤ 6.12.* (semver) Unaffected: 6.18.61 , ≤ 6.18.* (semver) Unaffected: 7.3.2 , ≤ 7.3.* (semver) Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix) |
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"fs/smb/client/smb2pdu.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "75fd4c72aa3dcfabb318144636f416be6796d423",
"status": "affected",
"version": "62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1",
"versionType": "git"
},
{
"lessThan": "acf25a7be39dccdbf60fdf3d437dd7832fa4b6d3",
"status": "affected",
"version": "62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1",
"versionType": "git"
},
{
"lessThan": "d26f7fbca42532c6c79efdceb4bd5198e1849314",
"status": "affected",
"version": "62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1",
"versionType": "git"
},
{
"lessThan": "73cc469b0ff7551f8537ea919709973e6dc4f514",
"status": "affected",
"version": "62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"fs/smb/client/smb2pdu.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "3.8"
},
{
"lessThan": "3.8",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"version": "6.12.117",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.61",
"versionType": "semver"
},
{
"lessThanOrEqual": "7.3.*",
"status": "unaffected",
"version": "7.3.2",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.4-rc1",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.12.117",
"versionStartIncluding": "3.8",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.18.61",
"versionStartIncluding": "3.8",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.3.2",
"versionStartIncluding": "3.8",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.4-rc1",
"versionStartIncluding": "3.8",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix buffer overflow in SMB2_tcon()\n\nIn SMB2_tcon(), unc_path is allocated with a fixed buffer size of\nMAX_SHARENAME_LENGTH * 2 bytes (672 bytes). However, the user-controlled\nUNC path (tree) length is passed to cifs_strtoUTF16(), which assumes the\ndestination buffer is large enough and writes strlen(tree) + 1 UTF-16 code\nunits.\n\nCommit 62a1a439e0fd (\"cifs: clean up handling of unc= option\") removed the\nlength check on UNC mount options, allowing mount paths to exceed\nMAX_SHARENAME_LENGTH while retaining the fixed-size buffer allocation in\nSMB2_tcon(). Consequently, an oversized UNC string causes cifs_strtoUTF16()\nto write past the end of the heap object, resulting in a slab-out-of-bounds\nwrite. Furthermore, if a tree exceeds MAX_TREE_SIZE characters, strscpy()\ntruncates it in cifs_tcon::tree_name, causing subsequent reconnects or\nfailovers to fail.\n\nFix this by first verifying that the length of tree does not exceed\nMAX_TREE_SIZE, returning -EINVAL if it does. Then, dynamically allocate\nunc_path based on the length of tree so that it safely accommodates all\nUTF-16 code units for paths within MAX_TREE_SIZE.\n\n[pc: remove unused MAX_SHARENAME_LENGTH]"
}
],
"metrics": [
{
"cvssV3_1": {
"baseScore": 9.8,
"baseSeverity": "CRITICAL",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"scenarios": [
{
"lang": "en",
"value": "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-\u003eUNC, and cifs_get_tcon() or tree_connect_dfs_target() passes it to SMB2_tcon(). SMB2/3 over TCP/445 is routable.\nAC:L - The server sets the FSCTL_DFS_GET_REFERRALS NetworkAddress and can reset TCP. Signing stays off unless ctx-\u003esign 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.\nPR:N - The attacker is the SMB server. With signing off, session setup completes on STATUS_SUCCESS without the server knowing the client\u0027s password, and the client then issues FSCTL_DFS_GET_REFERRALS on the IPC tcon. No client capability is checked on that receive path.\nUI: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.\nS: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.\nC: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\u0027s pointer or length yields an out-of-bounds read.\nI: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.\nA: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."
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-22T11:07:59.150Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/75fd4c72aa3dcfabb318144636f416be6796d423"
},
{
"url": "https://git.kernel.org/stable/c/acf25a7be39dccdbf60fdf3d437dd7832fa4b6d3"
},
{
"url": "https://git.kernel.org/stable/c/d26f7fbca42532c6c79efdceb4bd5198e1849314"
},
{
"url": "https://git.kernel.org/stable/c/73cc469b0ff7551f8537ea919709973e6dc4f514"
}
],
"title": "smb: client: fix buffer overflow in SMB2_tcon()",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2026-99385",
"datePublished": "2026-11-19T14:23:25.254Z",
"dateReserved": "2026-09-25T10:25:14.411Z",
"dateUpdated": "2026-11-22T11:07:59.150Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2026-99385",
"date": "2026-11-22",
"epss": "0.00243",
"percentile": "0.15579"
},
"microsoft_vex": {
"current_release_date": "2026-11-21T01:05:34.000Z",
"cve": "CVE-2026-99385",
"id": "msrc_CVE-2026-99385",
"initial_release_date": "2026-11-21T01:05:34.000Z",
"product_status:known_affected": "1",
"source": "Microsoft CSAF VEX",
"status": "final",
"title": "smb: client: fix buffer overflow in SMB2_tcon()",
"url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-99385.json",
"version": "1"
},
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"fs/smb/client/smb2pdu.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "75fd4c72aa3dcfabb318144636f416be6796d423",
"status": "affected",
"version": "62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1",
"versionType": "git"
},
{
"lessThan": "acf25a7be39dccdbf60fdf3d437dd7832fa4b6d3",
"status": "affected",
"version": "62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1",
"versionType": "git"
},
{
"lessThan": "d26f7fbca42532c6c79efdceb4bd5198e1849314",
"status": "affected",
"version": "62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1",
"versionType": "git"
},
{
"lessThan": "73cc469b0ff7551f8537ea919709973e6dc4f514",
"status": "affected",
"version": "62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"fs/smb/client/smb2pdu.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "3.8"
},
{
"lessThan": "3.8",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"version": "6.12.117",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.61",
"versionType": "semver"
},
{
"lessThanOrEqual": "7.3.*",
"status": "unaffected",
"version": "7.3.2",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.4-rc1",
"versionType": "original_commit_for_fix"
}
]
}
],
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix buffer overflow in SMB2_tcon()\n\nIn SMB2_tcon(), unc_path is allocated with a fixed buffer size of\nMAX_SHARENAME_LENGTH * 2 bytes (672 bytes). However, the user-controlled\nUNC path (tree) length is passed to cifs_strtoUTF16(), which assumes the\ndestination buffer is large enough and writes strlen(tree) + 1 UTF-16 code\nunits.\n\nCommit 62a1a439e0fd (\"cifs: clean up handling of unc= option\") removed the\nlength check on UNC mount options, allowing mount paths to exceed\nMAX_SHARENAME_LENGTH while retaining the fixed-size buffer allocation in\nSMB2_tcon(). Consequently, an oversized UNC string causes cifs_strtoUTF16()\nto write past the end of the heap object, resulting in a slab-out-of-bounds\nwrite. Furthermore, if a tree exceeds MAX_TREE_SIZE characters, strscpy()\ntruncates it in cifs_tcon::tree_name, causing subsequent reconnects or\nfailovers to fail.\n\nFix this by first verifying that the length of tree does not exceed\nMAX_TREE_SIZE, returning -EINVAL if it does. Then, dynamically allocate\nunc_path based on the length of tree so that it safely accommodates all\nUTF-16 code units for paths within MAX_TREE_SIZE.\n\n[pc: remove unused MAX_SHARENAME_LENGTH]"
}
],
"id": "CVE-2026-99385",
"lastModified": "2026-11-22T11:16:49.663",
"metrics": {
"cvssMetricV31": [
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 9.8,
"baseSeverity": "CRITICAL",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"exploitabilityScore": 3.9,
"impactScore": 5.9,
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"type": "Secondary"
}
]
},
"published": "2026-11-19T15:17:50.713",
"references": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/73cc469b0ff7551f8537ea919709973e6dc4f514"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/75fd4c72aa3dcfabb318144636f416be6796d423"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/acf25a7be39dccdbf60fdf3d437dd7832fa4b6d3"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/d26f7fbca42532c6c79efdceb4bd5198e1849314"
}
],
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"vulnStatus": "Received"
}
},
"redhat_vex": {
"aggregate_severity": "Moderate",
"current_release_date": "2026-11-22T11:32:44+00:00",
"cve": "CVE-2026-99385",
"id": "CVE-2026-99385",
"initial_release_date": "2026-11-19T14:23:25.254000+00:00",
"product_status:known_affected": "162",
"product_status:known_not_affected": "42",
"source": "Red Hat CSAF VEX",
"status": "final",
"title": "kernel: kernel: Denial of Service via oversized UNC mount path in SMB client",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99385.json",
"version": "3"
},
"suse_vex": {
"aggregate_severity": "moderate",
"current_release_date": "2026-11-20T17:47:28Z",
"cve": "CVE-2026-99385",
"id": "CVE-2026-99385",
"initial_release_date": "2026-11-20T17:47:28Z",
"source": "SUSE CSAF VEX",
"status": "interim",
"title": "SUSE CVE CVE-2026-99385",
"url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2026/cve-2026-99385.json",
"version": "2"
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Loading…
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.
Loading…