{"api_version":"1","generated_at":"2026-12-01T13:13:05+00:00","cve":"CVE-2026-99541","urls":{"html":"https://cve.report/CVE-2026-99541","api":"https://cve.report/api/cve/CVE-2026-99541.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99541","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99541"},"summary":{"title":"ksmbd: fix OOB read and cross-share confusion in ksmbd_validate_name_reconnect()","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-19 15:18:10","updated_at":"2026-11-23 08:17:56"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"8.3","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","baseScore":8.3,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"LOW","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"8.3","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","data":{"baseScore":8.3,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/783a7fc454991544bf92268d8f2413af1a7c7eb8","name":"https://git.kernel.org/stable/c/783a7fc454991544bf92268d8f2413af1a7c7eb8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0129f7196a05a974bfb3ac4efd8380be651a51b9","name":"https://git.kernel.org/stable/c/0129f7196a05a974bfb3ac4efd8380be651a51b9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/93cb902b0ca04c9dc28b38776f7a03503c84b7ad","name":"https://git.kernel.org/stable/c/93cb902b0ca04c9dc28b38776f7a03503c84b7ad","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/828c02c65e2b0541f0cce403e336b978f92b6dfa","name":"https://git.kernel.org/stable/c/828c02c65e2b0541f0cce403e336b978f92b6dfa","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/89b539970af70a003a475c1ec975b16f6b4dae69","name":"https://git.kernel.org/stable/c/89b539970af70a003a475c1ec975b16f6b4dae69","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99541","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99541","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8df4bcdb0a4232192b2445256c39b787d58ef14d 89b539970af70a003a475c1ec975b16f6b4dae69 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c8efcc786146a951091588e5fa7e3c754850cb3c 0129f7196a05a974bfb3ac4efd8380be651a51b9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c8efcc786146a951091588e5fa7e3c754850cb3c 93cb902b0ca04c9dc28b38776f7a03503c84b7ad git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c8efcc786146a951091588e5fa7e3c754850cb3c 828c02c65e2b0541f0cce403e336b978f92b6dfa git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected c8efcc786146a951091588e5fa7e3c754850cb3c 783a7fc454991544bf92268d8f2413af1a7c7eb8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.6.32 6.6.163 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.9","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.9 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.61 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.2 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"99541","cve":"CVE-2026-99541","epss":"0.004380000","percentile":"0.388320000","score_date":"2026-11-23","updated_at":"2026-11-24 00:07:46"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/smb/server/vfs_cache.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"89b539970af70a003a475c1ec975b16f6b4dae69","status":"affected","version":"8df4bcdb0a4232192b2445256c39b787d58ef14d","versionType":"git"},{"lessThan":"0129f7196a05a974bfb3ac4efd8380be651a51b9","status":"affected","version":"c8efcc786146a951091588e5fa7e3c754850cb3c","versionType":"git"},{"lessThan":"93cb902b0ca04c9dc28b38776f7a03503c84b7ad","status":"affected","version":"c8efcc786146a951091588e5fa7e3c754850cb3c","versionType":"git"},{"lessThan":"828c02c65e2b0541f0cce403e336b978f92b6dfa","status":"affected","version":"c8efcc786146a951091588e5fa7e3c754850cb3c","versionType":"git"},{"lessThan":"783a7fc454991544bf92268d8f2413af1a7c7eb8","status":"affected","version":"c8efcc786146a951091588e5fa7e3c754850cb3c","versionType":"git"},{"lessThan":"6.6.163","status":"affected","version":"6.6.32","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/smb/server/vfs_cache.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.9"},{"lessThan":"6.9","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.117","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.61","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.2","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"6.6.32","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"6.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.61","versionStartIncluding":"6.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.2","versionStartIncluding":"6.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.9","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"baseScore":8.3,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:N - The SMB2 CREATE Name and DH2C/DHnC durable-reconnect context arrive on TCP/445; ksmbd_conn_handler_loop() queues handle_ksmbd_work(), which calls smb2_open() and, for a lease reconnect, smb2_check_durable_oplock() then ksmbd_validate_name_reconnect(), whose strcmp uses that Name.\nAC:L - A client that can tree-connect opens the share root or a short-path file with a durable v2 lease (HANDLE_CACHING), drops its own TCP session so session_fd_check() keeps the fp, then sends CREATE/DH2C with a chosen Name; strcmp(&ab_pathname[share->path_sz+1], name) then runs deterministically.\nPR:L - smb2_check_user_session() accepts SMB2_CREATE only after a session reaches SMB2_SESSION_VALID, get_ksmbd_tcon() requires a tree connect, and smb2_check_durable_oplock() accepts the reconnect only when ksmbd_vfs_compare_durable_owner() matches sess->user.\nUI:N - The attacker alone sends the durable CREATE, closes that connection, and sends the reconnect CREATE on a new TCP session to port 445.\nS:U - The out-of-bounds strcmp and the fp->share_conf update in ksmbd_reopen_durable_fd() both occur in the host kernel that runs ksmbd, the same security authority as the SMB server.\nC:H - d_path() stores the NUL at the last byte of the kmalloc(PATH_MAX) buffer, so when strlen(ab_pathname) <= share->path_sz, strcmp(&ab_pathname[share->path_sz+1], name) reads past the object. Reconnect returns STATUS_SUCCESS only if those bytes equal the CREATE Name, an unbounded heap equality oracle.\nI:L - When the CREATE Name equals the path suffix at ab_pathname[share->path_sz+1], ksmbd_validate_name_reconnect() returns 0 without a share-prefix check, and ksmbd_reopen_durable_fd() points fp->share_conf at that other share, republishing only the caller's existing filp.\nA:H - strcmp walks from ab_pathname[share->path_sz+1] until a NUL. d_path() places that NUL at the last byte of the kmalloc(PATH_MAX) buffer, so a longer reconnect share path reads off the allocation and oopses, and the share-root case (strlen(ab_pathname)==share->path_sz) starts one byte past the object."}]}],"providerMetadata":{"dateUpdated":"2026-11-23T08:04:05.486Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/89b539970af70a003a475c1ec975b16f6b4dae69"},{"url":"https://git.kernel.org/stable/c/0129f7196a05a974bfb3ac4efd8380be651a51b9"},{"url":"https://git.kernel.org/stable/c/93cb902b0ca04c9dc28b38776f7a03503c84b7ad"},{"url":"https://git.kernel.org/stable/c/828c02c65e2b0541f0cce403e336b978f92b6dfa"},{"url":"https://git.kernel.org/stable/c/783a7fc454991544bf92268d8f2413af1a7c7eb8"}],"title":"ksmbd: fix OOB read and cross-share confusion in ksmbd_validate_name_reconnect()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99541","datePublished":"2026-11-19T14:44:56.387Z","dateReserved":"2026-09-25T10:25:14.421Z","dateUpdated":"2026-11-23T08:04:05.486Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-19 15:18:10","lastModifiedDate":"2026-11-23 08:17:56","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","baseScore":8.3,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"LOW","availabilityImpact":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.5}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99541","Ordinal":"1","Title":"ksmbd: fix OOB read and cross-share confusion in ksmbd_validate_","CVE":"CVE-2026-99541","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99541","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"ksmbd: fix OOB read and cross-share confusion in ksmbd_validate_"}]}}}