{"id":"CVE-2026-99541","aliases":["CVE-2026-99541"],"related":[],"kind":"vulnerability","state":"published","title":"ksmbd: fix OOB read and cross-share confusion in ksmbd_validate_name_reconnect()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix OOB read and cross-share confusion in ksmbd_validate_name_reconnect()\n\nksmbd_validate_name_reconnect() indexes\nab_pathname[share->path_sz + 1] without checking that the path is\nlonger than share->path_sz + 1 (d_path() fills the buffer from the\nend). A durable fp is not bound to its original share, so a client\ncan preserve a file from a short-path share and reconnect it on a\nlong-path share, making strcmp() read past the PATH_MAX buffer -\nwith a long enough share path this oopses the kernel, and on a\nmapped page it also gives a byte-equality oracle on adjacent heap\n(the reconnect succeeds exactly when the out-of-bounds string\nequals the requested name). A same-share variant with the durable\nfp at the share root reads 1 byte past the buffer\n(strlen(ab_pathname) == share->path_sz).\n\nCheck before comparing: the path must be longer than share->path_sz,\nit must start with share->path, and the next character must be '/'.\nThe share root itself is accepted only for an empty name.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix OOB read and cross-share confusion in ksmbd_validate_name_reconnect()\n\nksmbd_validate_name_reconnect() indexes\nab_pathname[share->path_sz + 1] without checking that the path is\nlonger than share->path_sz + 1 (d_path() fills the buffer from the\nend). A durable fp is not bound to its original share, so a client\ncan preserve a file from a short-path share and reconnect it on a\nlong-path share, making strcmp() read past the PATH_MAX buffer -\nwith a long enough share path this oopses the kernel, and on a\nmapped page it also gives a byte-equality oracle on adjacent heap\n(the reconnect succeeds exactly when the out-of-bounds string\nequals the requested name). A same-share variant with the durable\nfp at the share root reads 1 byte past the buffer\n(strlen(ab_pathname) == share->path_sz).\n\nCheck before comparing: the path must be longer than share->path_sz,\nit must start with share->path, and the next character must be '/'.\nThe share root itself is accepted only for an empty name.","source":"cvelist"}],"published":"2026-11-19T14:44:56.387Z","modified":"2026-11-23T08:17:56.130Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","score":8.3,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","score":8.3,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8df4bcdb0a4232192b2445256c39b787d58ef14d","fixed":"89b539970af70a003a475c1ec975b16f6b4dae69","status":"affected"},{"type":"git","introduced":"c8efcc786146a951091588e5fa7e3c754850cb3c","fixed":"0129f7196a05a974bfb3ac4efd8380be651a51b9","status":"affected"},{"type":"git","introduced":"c8efcc786146a951091588e5fa7e3c754850cb3c","fixed":"93cb902b0ca04c9dc28b38776f7a03503c84b7ad","status":"affected"},{"type":"git","introduced":"c8efcc786146a951091588e5fa7e3c754850cb3c","fixed":"828c02c65e2b0541f0cce403e336b978f92b6dfa","status":"affected"},{"type":"git","introduced":"c8efcc786146a951091588e5fa7e3c754850cb3c","fixed":"783a7fc454991544bf92268d8f2413af1a7c7eb8","status":"affected"},{"type":"semver","introduced":"6.6.32","fixed":"6.6.163","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.9","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.61","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.2","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","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/89b539970af70a003a475c1ec975b16f6b4dae69","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0129f7196a05a974bfb3ac4efd8380be651a51b9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/93cb902b0ca04c9dc28b38776f7a03503c84b7ad","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/828c02c65e2b0541f0cce403e336b978f92b6dfa","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/783a7fc454991544bf92268d8f2413af1a7c7eb8","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99541","url":"https://www.cve.org/CVERecord?id=CVE-2026-99541","licence":"CVE Terms of Use","modified":"2026-11-23T08:04:05.486Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99541","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99541","licence":"Public domain","modified":"2026-11-23T08:17:56.130Z"}],"updatedAt":"2026-11-25T22:59:52.109Z","epss":{"score":0.00438,"percentile":0.39819,"date":"2026-12-01T12:00:22.000Z"}}