{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-99535","id":"CVE-2026-99535","title":"Linux ksmbd share root removal via empty link paths","description":"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_BE","descriptionLong":"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.","published":"2026-11-19T14:44:48.628Z","updated":"2026-11-19T17:01:27.138503531Z","reserved":"2026-09-25T10:25:14.420Z","status":"Received","rejected":false,"assigner":"Linux","metric":null,"metrics":[],"rating":"unrated","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"74d7970febf7e9005375aeda0df821d2edffc9f7","lessThan":"007eaa56b06fd05c55b86afabab3354ff7c24653","status":"affected","versionType":"git"},{"version":"74d7970febf7e9005375aeda0df821d2edffc9f7","lessThan":"2756a41a82d618bf1d8b41d74108311815cb695c","status":"affected","versionType":"git"},{"version":"74d7970febf7e9005375aeda0df821d2edffc9f7","lessThan":"1f8945d2eb20a135b4e22e6fe2348a0191be208a","status":"affected","versionType":"git"},{"version":"74d7970febf7e9005375aeda0df821d2edffc9f7","lessThan":"9fd1fcbbf84986a7bcf601a2b90540899069d263","status":"affected","versionType":"git"},{"version":"019aae488dbc67c97a33db03652e20e2c9e3afa7","status":"affected","versionType":"git"},{"version":"6927ffe7479c72e7ebf885507227266a75f7c97d","status":"affected","versionType":"git"},{"version":"ef6cc1c465786b3e4e735d1ab8b616b3e94402df","status":"affected","versionType":"git"},{"version":"5.15.145","lessThan":"5.16","status":"affected","versionType":"semver"},{"version":"6.1.71","lessThan":"6.2","status":"affected","versionType":"semver"},{"version":"6.3.10","lessThan":"6.4","status":"affected","versionType":"semver"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.4","status":"affected"},{"version":"0","lessThan":"6.4","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.61","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.2","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/007eaa56b06fd05c55b86afabab3354ff7c24653","tags":["web"]},{"url":"https://git.kernel.org/stable/c/2756a41a82d618bf1d8b41d74108311815cb695c","tags":["web"]},{"url":"https://git.kernel.org/stable/c/1f8945d2eb20a135b4e22e6fe2348a0191be208a","tags":["web"]},{"url":"https://git.kernel.org/stable/c/9fd1fcbbf84986a7bcf601a2b90540899069d263","tags":["web"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99535.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99535","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":null,"epssPercentile":null,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-99535","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99535","ok":true,"note":"Received"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-99535","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-99535","ok":false,"note":"no score yet"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}