{"id":"CVE-2026-99535","published":"2026-11-19T14:44:48Z","modified":"2026-11-19T14:44:48Z","title":"ksmbd: prevent share root removal through empty paths","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00206,"percentile":0.1062,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/007eaa56b06fd05c55b86afabab3354ff7c24653","tags":[]},{"url":"https://git.kernel.org/stable/c/2756a41a82d618bf1d8b41d74108311815cb695c","tags":[]},{"url":"https://git.kernel.org/stable/c/1f8945d2eb20a135b4e22e6fe2348a0191be208a","tags":[]},{"url":"https://git.kernel.org/stable/c/9fd1fcbbf84986a7bcf601a2b90540899069d263","tags":[]}],"priority":{"score":2.1,"factors":[{"name":"EPSS percentile","points":2.12}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 74d7970febf7e9005375aeda0df821d2edffc9f7, < 007eaa56b06fd05c55b86afabab3354ff7c24653",">= 74d7970febf7e9005375aeda0df821d2edffc9f7, < 2756a41a82d618bf1d8b41d74108311815cb695c",">= 74d7970febf7e9005375aeda0df821d2edffc9f7, < 1f8945d2eb20a135b4e22e6fe2348a0191be208a",">= 74d7970febf7e9005375aeda0df821d2edffc9f7, < 9fd1fcbbf84986a7bcf601a2b90540899069d263","019aae488dbc67c97a33db03652e20e2c9e3afa7","6927ffe7479c72e7ebf885507227266a75f7c97d","ef6cc1c465786b3e4e735d1ab8b616b3e94402df",">= 5.15.145, < 5.16",">= 6.1.71, < 6.2",">= 6.3.10, < 6.4"]},{"vendor":"Linux","product":"Linux","versions":["6.4"]}],"euvd":{"id":"EUVD-2026-130259","exploited":false,"provenance":"source"}}