{"id":"CVE-2026-99385","published":"2026-11-19T15:17:50Z","modified":"2026-11-23T08:17:43Z","title":"smb: client: fix buffer overflow in SMB2_tcon()","vendor":"Linux","product":"Linux","tier":"core","eol":null,"affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1, < 75fd4c72aa3dcfabb318144636f416be6796d423",">= 62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1, < acf25a7be39dccdbf60fdf3d437dd7832fa4b6d3",">= 62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1, < d26f7fbca42532c6c79efdceb4bd5198e1849314",">= 62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1, < 73cc469b0ff7551f8537ea919709973e6dc4f514"]},{"vendor":"Linux","product":"Linux","versions":["3.8"]}],"nvdStatus":"Received","description":{"text":"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]","provenance":"source","from":"NVD"},"summary":null,"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"NVD"},"epss":{"score":0.00863,"percentile":0.59507,"date":"2026-11-23","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":8,"pulses":[{"name":"Known_Cve | Nov 23, 2026 | Part 2/3","url":"https://otx.alienvault.com/pulse/6b03fdfc3e95789adab2a048","created":"2026-11-23"},{"name":"Known_Cve | Nov 23, 2026 | Part 2/3","url":"https://otx.alienvault.com/pulse/6b03549d478678c77e37c293","created":"2026-11-22"},{"name":"Known_Cve | Nov 22, 2026 | Part 2/3","url":"https://otx.alienvault.com/pulse/6b02ab7c3da7db7d1f97822a","created":"2026-11-22"},{"name":"Known_Cve | Nov 22, 2026 | Part 2/3","url":"https://otx.alienvault.com/pulse/6b0202e1bd989a8931b8e3d5","created":"2026-11-21"},{"name":"Known_Cve | Nov 21, 2026 | Part 2/3","url":"https://otx.alienvault.com/pulse/6b015ae680c25725932aa476","created":"2026-11-21"},{"name":"Known_Cve | Nov 21, 2026 | Part 3/3","url":"https://otx.alienvault.com/pulse/6b00b21837c47161cd80a32c","created":"2026-11-20"},{"name":"Known_Cve | Nov 20, 2026 | Part 3/3","url":"https://otx.alienvault.com/pulse/6b00093f9db33bfdc055d784","created":"2026-11-20"},{"name":"Known_Cve | Nov 20, 2026 | Part 3/3","url":"https://otx.alienvault.com/pulse/6aff5fb2dac8a5d861c8dea0","created":"2026-11-19"}],"provenance":"machine"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/0149377b312eeb136119223a7c05d55c4b24c76d","tags":[]},{"url":"https://git.kernel.org/stable/c/73cc469b0ff7551f8537ea919709973e6dc4f514","tags":[]},{"url":"https://git.kernel.org/stable/c/75fd4c72aa3dcfabb318144636f416be6796d423","tags":[]},{"url":"https://git.kernel.org/stable/c/85692a261042bab56fdfd51e10630f09ef5a5082","tags":[]},{"url":"https://git.kernel.org/stable/c/a4e022f375a04cadca3f799f6157877961be5829","tags":[]},{"url":"https://git.kernel.org/stable/c/acf25a7be39dccdbf60fdf3d437dd7832fa4b6d3","tags":[]},{"url":"https://git.kernel.org/stable/c/d26f7fbca42532c6c79efdceb4bd5198e1849314","tags":[]},{"url":"https://git.kernel.org/stable/c/e17fe5c8bf3fca4852e497b7061e316d314d7c52","tags":[]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2026-130043","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-130043","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":null,"exploitRefs":[],"flow":[],"timeline":[{"date":"2026-11-19","kind":"published","label":"Published (NVD)","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99385","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":null,"daysToKev":null},"priority":{"score":20.9,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":11.9,"detail":"percentile 0.5951"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":0.0,"detail":"none found"},{"name":"Mentioned in OTX pulses","points":2.17,"detail":"8 pulses"},{"name":"CVSS severity","points":6.86,"detail":"base score 9.8"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}