{"id":"CVE-2026-89631","aliases":["CVE-2026-89631"],"related":[],"kind":"vulnerability","state":"published","title":"smb: client: reject a tree connect response whose byte count is too small","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: reject a tree connect response whose byte count is too small\n\nCIFSTCon() bounds its strnlen() over the byte area with the server's\nByteCount minus two, which for ByteCount 0 or 1 goes negative as an int\nand converts to a huge size_t.  The later subtraction wraps the __u16\nbytes_left, and that is what bounds cifs_strndup_from_utf16(): a bound of\nup to 65535 against a ~16 KB cifs_req_poolp object runs off the end of the\nslab object, and the bytes reach userspace through tcon->nativeFileSystem\nin /proc/fs/cifs/DebugData.\n\nReject a byte area too small for what the parser consumes.  Two bytes is\nthe least it can consume, and no conformant response carries fewer.  The\nnew trace point is the 129th smb_eio_trace entry, which __mode(byte)\ncannot represent, so the attribute goes with it.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: reject a tree connect response whose byte count is too small\n\nCIFSTCon() bounds its strnlen() over the byte area with the server's\nByteCount minus two, which for ByteCount 0 or 1 goes negative as an int\nand converts to a huge size_t.  The later subtraction wraps the __u16\nbytes_left, and that is what bounds cifs_strndup_from_utf16(): a bound of\nup to 65535 against a ~16 KB cifs_req_poolp object runs off the end of the\nslab object, and the bytes reach userspace through tcon->nativeFileSystem\nin /proc/fs/cifs/DebugData.\n\nReject a byte area too small for what the parser consumes.  Two bytes is\nthe least it can consume, and no conformant response carries fewer.  The\nnew trace point is the 129th smb_eio_trace entry, which __mode(byte)\ncannot represent, so the attribute goes with it.","source":"cvelist"}],"published":"2026-09-11T19:45:26.444Z","modified":"2026-10-30T13:20:23.050Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","score":9.1,"rating":"CRITICAL"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"cc20c031bb067eb3280a1c4b5c42295093e24863","fixed":"bb99866cb1d3d5e8201200a8692fd8da3106a8fd","status":"affected"},{"type":"git","introduced":"cc20c031bb067eb3280a1c4b5c42295093e24863","fixed":"d837645a719151ed392d4d9cab4571c2753dab12","status":"affected"},{"type":"git","introduced":"cc20c031bb067eb3280a1c4b5c42295093e24863","fixed":"2ae219762ebac929bf6ab3473681f10ed566af08","status":"affected"},{"type":"git","introduced":"cc20c031bb067eb3280a1c4b5c42295093e24863","fixed":"3be89e8039a85fa3b6cd5f9dcc4c1459eb356c2d","status":"affected"},{"type":"git","introduced":"cc20c031bb067eb3280a1c4b5c42295093e24863","fixed":"411e484fe71a7f1028de617447edad9cb6d9d68a","status":"affected"},{"type":"git","introduced":"cc20c031bb067eb3280a1c4b5c42295093e24863","fixed":"65deb18359341141d37dc86fc7853511be3c87a7","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.30","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.30","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.114","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.51","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.4","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/bb99866cb1d3d5e8201200a8692fd8da3106a8fd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d837645a719151ed392d4d9cab4571c2753dab12","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2ae219762ebac929bf6ab3473681f10ed566af08","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3be89e8039a85fa3b6cd5f9dcc4c1459eb356c2d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/411e484fe71a7f1028de617447edad9cb6d9d68a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/65deb18359341141d37dc86fc7853511be3c87a7","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-10-16T19:24:39.378Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-89631","url":"https://www.cve.org/CVERecord?id=CVE-2026-89631","licence":"CVE Terms of Use","modified":"2026-10-30T12:32:21.680Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-89631","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89631","licence":"Public domain","modified":"2026-10-30T13:20:23.050Z"}],"updatedAt":"2026-11-25T22:59:38.090Z","epss":{"score":0.006,"percentile":0.50073,"date":"2026-12-01T12:00:22.000Z"}}