CVE-2026-99535
ksmbd: prevent share root removal through empty paths
Check your servers for CVE-2026-99535
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-99535 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.85% of all scored CVEs. Scores of 29 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 019aae488dbc67c97a33db03652e20e2c9e3afa7, before c718c89d0a36275580fd478bc86c23f2d1e6034a affected from 6927ffe7479c72e7ebf885507227266a75f7c97d, before a87ef12487a1cc6232076d709e0470f5f309fc60 affected from 74d7970febf7e9005375aeda0df821d2edffc9f7, before c73044f67fc01705eb9eb921da55a51f03f83566 affected from 74d7970febf7e9005375aeda0df821d2edffc9f7, before 007eaa56b06fd05c55b86afabab3354ff7c24653 affected from 74d7970febf7e9005375aeda0df821d2edffc9f7, before 2756a41a82d618bf1d8b41d74108311815cb695c affected from 74d7970febf7e9005375aeda0df821d2edffc9f7, before 1f8945d2eb20a135b4e22e6fe2348a0191be208a affected from 74d7970febf7e9005375aeda0df821d2edffc9f7, before 9fd1fcbbf84986a7bcf601a2b90540899069d263 affected ef6cc1c465786b3e4e735d1ab8b616b3e94402df affected from 5.15.145, before 5.15.226 affected from 6.1.71, before 6.1.193 affected from 6.3.10, before 6.4
Other versions: unaffected
|
| Linux |
affected 6.4 unaffected before 6.4 unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.117 up to and including 6.12.* unaffected from 6.18.61 up to and including 6.18.* unaffected from 7.3.2 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-99535 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99535
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-99535
trivy image --scanners vuln IMAGE | grep CVE-2026-99535
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/c718c89d0a36275580fd478bc86c23f2d1e6034a git.kernel.org
- https://git.kernel.org/stable/c/a87ef12487a1cc6232076d709e0470f5f309fc60 git.kernel.org
- https://git.kernel.org/stable/c/c73044f67fc01705eb9eb921da55a51f03f83566 git.kernel.org
- https://git.kernel.org/stable/c/007eaa56b06fd05c55b86afabab3354ff7c24653 git.kernel.org
- https://git.kernel.org/stable/c/2756a41a82d618bf1d8b41d74108311815cb695c git.kernel.org
- https://git.kernel.org/stable/c/1f8945d2eb20a135b4e22e6fe2348a0191be208a git.kernel.org
- https://git.kernel.org/stable/c/9fd1fcbbf84986a7bcf601a2b90540899069d263 git.kernel.org
Source: the record CVE-2026-99535 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse