# CVE-2026-99535: ksmbd: prevent share root removal through empty paths

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 7, 2026-11-28)
- **Published:** 2026-11-19T14:44:48.628Z
- **Modified:** 2026-11-23T08:17:55.510Z

## Who should check

- Anyone running Linux \>= 019aae488dbc67c97a33db03652e20e2c9e3afa7, \< c718c89d0a36275580fd478bc86c23f2d1e6034a; \>= 6927ffe7479c72e7ebf885507227266a75f7c97d, \< a87ef12487a1cc6232076d709e0470f5f309fc60; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< c73044f67fc01705eb9eb921da55a51f03f83566; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< 007eaa56b06fd05c55b86afabab3354ff7c24653; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< 2756a41a82d618bf1d8b41d74108311815cb695c; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< 1f8945d2eb20a135b4e22e6fe2348a0191be208a; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< 9fd1fcbbf84986a7bcf601a2b90540899069d263; ef6cc1c465786b3e4e735d1ab8b616b3e94402df; \>= 5.15.145, \< 5.15.226; \>= 6.1.71, \< 6.1.193; …
- Anyone running Linux 6.4

## Description

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: prevent share root removal through empty paths

A FileLinkInformation request can supply "/" as the new link name.
smb2\_get\_name() strips the trailing slash and passes an empty string to
ksmbd\_vfs\_kern\_path\_start\_removing().

ksmbd\_vfs\_path\_lookup() resolves an empty pathname as the configured share
path, without LOOKUP\_BENEATH. With ReplaceIfExists set, smb2\_create\_link()
can therefore remove the share root from its parent before link creation
fails. An authenticated client with a writable share and DELETE access to
a file can trigger this if the share root is empty and the mapped user
has write and search permission on its parent directory.

Return -EINVAL for empty pathnames when for\_remove is set, before
resolving the share path or acquiring removal resources. Ordinary lookups
continue to accept empty pathnames for opening the share root.

## Affected and fixed versions

- Linux: \>= 019aae488dbc67c97a33db03652e20e2c9e3afa7, \< c718c89d0a36275580fd478bc86c23f2d1e6034a; \>= 6927ffe7479c72e7ebf885507227266a75f7c97d, \< a87ef12487a1cc6232076d709e0470f5f309fc60; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< c73044f67fc01705eb9eb921da55a51f03f83566; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< 007eaa56b06fd05c55b86afabab3354ff7c24653; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< 2756a41a82d618bf1d8b41d74108311815cb695c; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< 1f8945d2eb20a135b4e22e6fe2348a0191be208a; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< 9fd1fcbbf84986a7bcf601a2b90540899069d263; ef6cc1c465786b3e4e735d1ab8b616b3e94402df; \>= 5.15.145, \< 5.15.226; \>= 6.1.71, \< 6.1.193; … (cvelist)
- Linux: 6.4 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99535. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99535.md
Affected: Linux >= 019aae488dbc67c97a33db03652e20e2c9e3afa7, < c718c89d0a36275580fd478bc86c23f2d1e6034a; >= 6927ffe7479c72e7ebf885507227266a75f7c97d, < a87ef12487a1cc6232076d709e0470f5f309fc60; >= 74d7970febf7e9005375aeda0df821d2edffc9f7, < c73044f67fc01705eb9eb921da55a51f03f83566; >= 74d7970febf7e9005375aed…
Fixed in: Linux 007eaa56b06fd05c55b86afabab3354ff7c24653, Linux 2756a41a82d618bf1d8b41d74108311815cb695c, Linux 1f8945d2eb20a135b4e22e6fe2348a0191be208a, Linux 9fd1fcbbf84986a7bcf601a2b90540899069d263, Linux 5.15.226, Linux 6.1.193

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99535 being exploited?

There is no confirmed exploitation: CVE-2026-99535 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99535?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-99535?

Linux \>= 019aae488dbc67c97a33db03652e20e2c9e3afa7, \< c718c89d0a36275580fd478bc86c23f2d1e6034a; \>= 6927ffe7479c72e7ebf885507227266a75f7c97d, \< a87ef12487a1cc6232076d709e0470f5f309fc60; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< c73044f67fc01705eb9eb921da55a51f03f83566; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< 007eaa56b06fd05c55b86afabab3354ff7c24653; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< 2756a41a82d618bf1d8b41d74108311815cb695c; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< 1f8945d2eb20a135b4e22e6fe2348a0191be208a; \>= 74d7970febf7e9005375aeda0df821d2edffc9f7, \< 9fd1fcbbf84986a7bcf601a2b90540899069d263; ef6cc1c465786b3e4e735d1ab8b616b3e94402df; \>= 5.15.145, \< 5.15.226; \>= 6.1.71, \< 6.1.193; …; Linux 6.4.

### Is there a fix for CVE-2026-99535?

Yes. Fixed in Linux 007eaa56b06fd05c55b86afabab3354ff7c24653, Linux 2756a41a82d618bf1d8b41d74108311815cb695c, Linux 1f8945d2eb20a135b4e22e6fe2348a0191be208a, Linux 9fd1fcbbf84986a7bcf601a2b90540899069d263, Linux 5.15.226, Linux 6.1.193. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-99535?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/c718c89d0a36275580fd478bc86c23f2d1e6034a>
- other: <https://git.kernel.org/stable/c/a87ef12487a1cc6232076d709e0470f5f309fc60>
- other: <https://git.kernel.org/stable/c/c73044f67fc01705eb9eb921da55a51f03f83566>
- other: <https://git.kernel.org/stable/c/007eaa56b06fd05c55b86afabab3354ff7c24653>
- other: <https://git.kernel.org/stable/c/2756a41a82d618bf1d8b41d74108311815cb695c>
- other: <https://git.kernel.org/stable/c/1f8945d2eb20a135b4e22e6fe2348a0191be208a>
- other: <https://git.kernel.org/stable/c/9fd1fcbbf84986a7bcf601a2b90540899069d263>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99535>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99535> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99535>
