{"id":"CVE-2026-99535","aliases":[],"title":"ksmbd: prevent share root removal through empty paths","originalDescription":"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.","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":{"score":0.00206,"percentile":0.11265},"exploitDb":null},"affected":[{"ecosystem":"Linux","name":"Kernel","range":">=5.15.145, <5.16","fixed":"5.16"},{"ecosystem":"Linux","name":"Kernel","range":">=6.1.71, <6.2","fixed":"6.2"},{"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.3.10, <6.4","fixed":"6.4"},{"ecosystem":"Linux","name":"Kernel","range":">=6.4.0, <6.12.117","fixed":"6.12.117"},{"ecosystem":"vendor","name":"Linux","range":">=019aae488dbc67c97a33db03652e20e2c9e3afa7, <c718c89d0a36275580fd478bc86c23f2d1e6034a","fixed":"c718c89d0a36275580fd478bc86c23f2d1e6034a"},{"ecosystem":"vendor","name":"Linux","range":">=5.15.145, <5.15.226","fixed":"5.15.226"},{"ecosystem":"vendor","name":"Linux","range":">=5.15.145, <5.16","fixed":"5.16"},{"ecosystem":"vendor","name":"Linux","range":">=6.1.71, <6.1.193","fixed":"6.1.193"},{"ecosystem":"vendor","name":"Linux","range":">=6.1.71, <6.2","fixed":"6.2"},{"ecosystem":"vendor","name":"Linux","range":">=6.3.10, <6.4","fixed":"6.4"},{"ecosystem":"vendor","name":"Linux","range":">=6927ffe7479c72e7ebf885507227266a75f7c97d, <a87ef12487a1cc6232076d709e0470f5f309fc60","fixed":"a87ef12487a1cc6232076d709e0470f5f309fc60"},{"ecosystem":"vendor","name":"Linux","range":">=74d7970febf7e9005375aeda0df821d2edffc9f7, <007eaa56b06fd05c55b86afabab3354ff7c24653","fixed":"007eaa56b06fd05c55b86afabab3354ff7c24653"},{"ecosystem":"vendor","name":"Linux","range":">=74d7970febf7e9005375aeda0df821d2edffc9f7, <1f8945d2eb20a135b4e22e6fe2348a0191be208a","fixed":"1f8945d2eb20a135b4e22e6fe2348a0191be208a"},{"ecosystem":"vendor","name":"Linux","range":">=74d7970febf7e9005375aeda0df821d2edffc9f7, <2756a41a82d618bf1d8b41d74108311815cb695c","fixed":"2756a41a82d618bf1d8b41d74108311815cb695c"},{"ecosystem":"vendor","name":"Linux","range":">=74d7970febf7e9005375aeda0df821d2edffc9f7, <9fd1fcbbf84986a7bcf601a2b90540899069d263","fixed":"9fd1fcbbf84986a7bcf601a2b90540899069d263"},{"ecosystem":"vendor","name":"Linux","range":">=74d7970febf7e9005375aeda0df821d2edffc9f7, <c73044f67fc01705eb9eb921da55a51f03f83566","fixed":"c73044f67fc01705eb9eb921da55a51f03f83566"}],"references":[{"url":"https://git.kernel.org/stable/c/007eaa56b06fd05c55b86afabab3354ff7c24653","type":"other"},{"url":"https://git.kernel.org/stable/c/2756a41a82d618bf1d8b41d74108311815cb695c","type":"other"},{"url":"https://git.kernel.org/stable/c/1f8945d2eb20a135b4e22e6fe2348a0191be208a","type":"other"},{"url":"https://git.kernel.org/stable/c/9fd1fcbbf84986a7bcf601a2b90540899069d263","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-99535.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99535","type":"advisory"},{"url":"https://git.kernel.org/stable/c/c718c89d0a36275580fd478bc86c23f2d1e6034a","type":"other"},{"url":"https://git.kernel.org/stable/c/a87ef12487a1cc6232076d709e0470f5f309fc60","type":"other"},{"url":"https://git.kernel.org/stable/c/c73044f67fc01705eb9eb921da55a51f03f83566","type":"other"}],"sources":[{"name":"nvd","at":"2026-11-23T08:46:27.342Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99535","license":"NVD terms of use","firstSeenAt":"2026-11-19T15:43:48.232Z"},{"name":"osv","at":"2026-11-19T17:23:41.165Z","url":"https://osv.dev/vulnerability/CVE-2026-99535","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T17:23:41.111Z"},{"name":"cvelistV5","at":"2026-11-23T21:30:55.424Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99535","license":"CVE Terms of Use","firstSeenAt":"2026-11-19T15:00:34.065Z"}],"firstSeenAt":"2026-11-19T15:00:34.065Z","publishedAt":"2026-11-19T14:44:48.628Z","modifiedAt":"2026-11-23T08:17:55.510Z"}