{"id":"CVE-2026-99541","aliases":[],"title":"ksmbd: fix OOB read and cross-share confusion in ksmbd_validate_name_reconnect()","originalDescription":"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.","severity":{"cvss":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.00438,"percentile":0.39856},"exploitDb":null},"affected":[{"ecosystem":"Linux","name":"Kernel","range":">=6.13.0, <6.18.61","fixed":"6.18.61"},{"ecosystem":"Linux","name":"Kernel","range":">=6.19.0, <7.3.2","fixed":"7.3.2"},{"ecosystem":"Linux","name":"Kernel","range":">=6.6.32, <6.7","fixed":"6.7"},{"ecosystem":"Linux","name":"Kernel","range":">=6.9.0, <6.12.117","fixed":"6.12.117"},{"ecosystem":"vendor","name":"Linux","range":">=6.6.32, <6.6.163","fixed":"6.6.163"},{"ecosystem":"vendor","name":"Linux","range":">=6.6.32, <6.7","fixed":"6.7"},{"ecosystem":"vendor","name":"Linux","range":">=8df4bcdb0a4232192b2445256c39b787d58ef14d, <89b539970af70a003a475c1ec975b16f6b4dae69","fixed":"89b539970af70a003a475c1ec975b16f6b4dae69"},{"ecosystem":"vendor","name":"Linux","range":">=c8efcc786146a951091588e5fa7e3c754850cb3c, <0129f7196a05a974bfb3ac4efd8380be651a51b9","fixed":"0129f7196a05a974bfb3ac4efd8380be651a51b9"},{"ecosystem":"vendor","name":"Linux","range":">=c8efcc786146a951091588e5fa7e3c754850cb3c, <783a7fc454991544bf92268d8f2413af1a7c7eb8","fixed":"783a7fc454991544bf92268d8f2413af1a7c7eb8"},{"ecosystem":"vendor","name":"Linux","range":">=c8efcc786146a951091588e5fa7e3c754850cb3c, <828c02c65e2b0541f0cce403e336b978f92b6dfa","fixed":"828c02c65e2b0541f0cce403e336b978f92b6dfa"},{"ecosystem":"vendor","name":"Linux","range":">=c8efcc786146a951091588e5fa7e3c754850cb3c, <93cb902b0ca04c9dc28b38776f7a03503c84b7ad","fixed":"93cb902b0ca04c9dc28b38776f7a03503c84b7ad"}],"references":[{"url":"https://git.kernel.org/stable/c/0129f7196a05a974bfb3ac4efd8380be651a51b9","type":"other"},{"url":"https://git.kernel.org/stable/c/93cb902b0ca04c9dc28b38776f7a03503c84b7ad","type":"other"},{"url":"https://git.kernel.org/stable/c/828c02c65e2b0541f0cce403e336b978f92b6dfa","type":"other"},{"url":"https://git.kernel.org/stable/c/783a7fc454991544bf92268d8f2413af1a7c7eb8","type":"other"},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","type":"package"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99541.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99541","type":"advisory"},{"url":"https://git.kernel.org/stable/c/89b539970af70a003a475c1ec975b16f6b4dae69","type":"other"}],"sources":[{"name":"nvd","at":"2026-11-23T08:46:27.355Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99541","license":"NVD terms of use","firstSeenAt":"2026-11-19T15:43:48.242Z"},{"name":"osv","at":"2026-11-22T13:31:47.632Z","url":"https://osv.dev/vulnerability/CVE-2026-99541","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T17:23:41.797Z"},{"name":"cvelistV5","at":"2026-11-23T21:30:55.635Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99541","license":"CVE Terms of Use","firstSeenAt":"2026-11-19T15:00:34.265Z"}],"firstSeenAt":"2026-11-19T15:00:34.265Z","publishedAt":"2026-11-19T14:44:56.387Z","modifiedAt":"2026-11-23T08:17:56.130Z"}