{"id":"CVE-2026-99385","aliases":[],"cve":{"records":[{"id":"CVE-2026-99385","source":"Linux","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-09-25T10:25:14.411Z","published":"2026-11-19T14:23:25.254Z","modified":"2026-11-22T11:07:59.150Z"}],"publishers":[{"name":"Linux","role":"CNA","organizationId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","modified":"2026-11-22T11:07:59.150Z"}],"references":[{"url":"https://git.kernel.org/stable/c/75fd4c72aa3dcfabb318144636f416be6796d423","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/acf25a7be39dccdbf60fdf3d437dd7832fa4b6d3","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/d26f7fbca42532c6c79efdceb4bd5198e1849314","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/73cc469b0ff7551f8537ea919709973e6dc4f514","tags":[],"source":"Linux"}],"weaknesses":[],"applicability":[{"source":"Linux","statements":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.8","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.8","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.8","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.8","versionEndExcluding":"7.4-rc1"}]}]}]}],"prioritization":[]},"title":"smb: client: fix buffer overflow in SMB2_tcon()","titleSource":"Linux","descriptionSource":"Linux","description":"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]","score":9.8,"severity":"critical","published":"2026-11-19T14:23:25.254Z","modified":"2026-11-22T11:07:59.150Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1","status":"affected","lessThan":"75fd4c72aa3dcfabb318144636f416be6796d423","versionType":"git"},{"version":"62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1","status":"affected","lessThan":"acf25a7be39dccdbf60fdf3d437dd7832fa4b6d3","versionType":"git"},{"version":"62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1","status":"affected","lessThan":"d26f7fbca42532c6c79efdceb4bd5198e1849314","versionType":"git"},{"version":"62a1a439e0fdd4ec8a80dc00fcbb9f26b5c34de1","status":"affected","lessThan":"73cc469b0ff7551f8537ea919709973e6dc4f514","versionType":"git"}],"defaultStatus":"unaffected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99385"},{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"3.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.8","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"defaultStatus":"affected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99385"}],"remediation":[],"references":["https://git.kernel.org/stable/c/75fd4c72aa3dcfabb318144636f416be6796d423","https://git.kernel.org/stable/c/acf25a7be39dccdbf60fdf3d437dd7832fa4b6d3","https://git.kernel.org/stable/c/d26f7fbca42532c6c79efdceb4bd5198e1849314","https://git.kernel.org/stable/c/73cc469b0ff7551f8537ea919709973e6dc4f514"],"sources":[{"name":"CVE","id":"CVE-2026-99385","modified":"2026-11-22T11:07:59.150Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99385"}],"assessments":[{"source":"Linux","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8}],"sourceAffected":[],"observedAt":"2026-11-22T11:21:01.417Z","kev":{"status":"not-listed","checkedAt":"2026-11-22T12:55:31.449Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-22T06:30:33.298Z","attemptedAt":"2026-11-22T06:30:33.298Z"},{"source":"GHSA","status":"available","checkedAt":"2026-11-22T06:00:34.166Z","attemptedAt":"2026-11-22T06:00:34.166Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-22T05:40:36.891Z","attemptedAt":"2026-11-22T05:40:36.891Z"},{"source":"EPSS","status":"available","checkedAt":"2026-11-22T05:20:31.708Z","attemptedAt":"2026-11-22T05:20:31.708Z"}],"evidence":[{"source":"FIRST EPSS","id":"CVE-2026-99385","url":"https://www.first.org/epss/","probability":0.00243,"percentile":0.15584,"date":"2026-11-21","checkedAt":"2026-11-22T05:20:31.708Z"},{"source":"ENISA EUVD","id":"EUVD-2026-130043","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-130043","modified":"Nov 19, 2026, 2:38:51 PM","checkedAt":"2026-11-22T05:40:36.891Z"},{"source":"GitHub Advisory Database","id":"GHSA-wpgh-9h8m-65v9","url":"https://github.com/advisories/GHSA-wpgh-9h8m-65v9","modified":"2026-11-19T15:31:23Z","checkedAt":"2026-11-22T06:00:34.166Z"},{"source":"NVD","id":"CVE-2026-99385","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99385","modified":"2026-11-19T15:17:50.713","checkedAt":"2026-11-22T06:30:33.298Z"}],"aiSummary":null}