{"id":"CVE-2026-99535","aliases":["CVE-2026-99535"],"related":[],"kind":"vulnerability","state":"published","title":"ksmbd: prevent share root removal through empty paths","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: prevent share root removal through empty paths\n\nA FileLinkInformation request can supply \"/\" as the new link name.\nsmb2_get_name() strips the trailing slash and passes an empty string to\nksmbd_vfs_kern_path_start_removing().\n\nksmbd_vfs_path_lookup() resolves an empty pathname as the configured share\npath, without LOOKUP_BENEATH. With ReplaceIfExists set, smb2_create_link()\ncan therefore remove the share root from its parent before link creation\nfails. An authenticated client with a writable share and DELETE access to\na file can trigger this if the share root is empty and the mapped user\nhas write and search permission on its parent directory.\n\nReturn -EINVAL for empty pathnames when for_remove is set, before\nresolving the share path or acquiring removal resources. Ordinary lookups\ncontinue to accept empty pathnames for opening the share root.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: prevent share root removal through empty paths\n\nA FileLinkInformation request can supply \"/\" as the new link name.\nsmb2_get_name() strips the trailing slash and passes an empty string to\nksmbd_vfs_kern_path_start_removing().\n\nksmbd_vfs_path_lookup() resolves an empty pathname as the configured share\npath, without LOOKUP_BENEATH. With ReplaceIfExists set, smb2_create_link()\ncan therefore remove the share root from its parent before link creation\nfails. An authenticated client with a writable share and DELETE access to\na file can trigger this if the share root is empty and the mapped user\nhas write and search permission on its parent directory.\n\nReturn -EINVAL for empty pathnames when for_remove is set, before\nresolving the share path or acquiring removal resources. Ordinary lookups\ncontinue to accept empty pathnames for opening the share root.","source":"cvelist"}],"published":"2026-11-19T14:44:48.628Z","modified":"2026-11-23T08:17:55.510Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"019aae488dbc67c97a33db03652e20e2c9e3afa7","fixed":"c718c89d0a36275580fd478bc86c23f2d1e6034a","status":"affected"},{"type":"git","introduced":"6927ffe7479c72e7ebf885507227266a75f7c97d","fixed":"a87ef12487a1cc6232076d709e0470f5f309fc60","status":"affected"},{"type":"git","introduced":"74d7970febf7e9005375aeda0df821d2edffc9f7","fixed":"c73044f67fc01705eb9eb921da55a51f03f83566","status":"affected"},{"type":"git","introduced":"74d7970febf7e9005375aeda0df821d2edffc9f7","fixed":"007eaa56b06fd05c55b86afabab3354ff7c24653","status":"affected"},{"type":"git","introduced":"74d7970febf7e9005375aeda0df821d2edffc9f7","fixed":"2756a41a82d618bf1d8b41d74108311815cb695c","status":"affected"},{"type":"git","introduced":"74d7970febf7e9005375aeda0df821d2edffc9f7","fixed":"1f8945d2eb20a135b4e22e6fe2348a0191be208a","status":"affected"},{"type":"git","introduced":"74d7970febf7e9005375aeda0df821d2edffc9f7","fixed":"9fd1fcbbf84986a7bcf601a2b90540899069d263","status":"affected"},{"type":"git","version":"ef6cc1c465786b3e4e735d1ab8b616b3e94402df","status":"affected"},{"type":"semver","introduced":"5.15.145","fixed":"5.15.226","status":"affected"},{"type":"semver","introduced":"6.1.71","fixed":"6.1.193","status":"affected"},{"type":"semver","introduced":"6.3.10","fixed":"6.4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.4","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","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/c718c89d0a36275580fd478bc86c23f2d1e6034a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a87ef12487a1cc6232076d709e0470f5f309fc60","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c73044f67fc01705eb9eb921da55a51f03f83566","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/007eaa56b06fd05c55b86afabab3354ff7c24653","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2756a41a82d618bf1d8b41d74108311815cb695c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1f8945d2eb20a135b4e22e6fe2348a0191be208a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9fd1fcbbf84986a7bcf601a2b90540899069d263","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99535","url":"https://www.cve.org/CVERecord?id=CVE-2026-99535","licence":"CVE Terms of Use","modified":"2026-11-23T08:03:59.397Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99535","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99535","licence":"Public domain","modified":"2026-11-23T08:17:55.510Z"}],"updatedAt":"2026-11-25T22:59:52.106Z","epss":{"score":0.00206,"percentile":0.11292,"date":"2026-12-01T12:00:22.000Z"}}