ksmbd is the Linux kernel’s in-kernel SMB3 file server, the alternative to user-space Samba that a handful of distributions ship as a module, and from kernel 6.9 (and the 6.6.32 stable backport) until the fixes of mid-November 2026 its durable-handle reconnect code compared a path against a share’s root without first checking that the path was long enough. A durable file handle is not bound to the share it was opened on, so an authenticated client can open a file on a share with a short path, disconnect, and reconnect that handle on a share with a long path; the comparison then reads past the PATH_MAX buffer, which with a long enough share path crashes the kernel, and on a mapped page the reconnect’s success or failure tells the client, byte by byte, what lies beyond the buffer. Upgrade to a kernel at or above 6.6.163, 6.12.117, 6.18.61 or 7.3.2 and reboot; until then, stop ksmbd on hosts where the clients are not all trusted, or serve the files with Samba instead. Red Hat Enterprise Linux is not affected, because it does not ship ksmbd.
CVE-2026-99541 at a glance.
| Component | Linux kernel, ksmbd’s ksmbd_validate_name_reconnect() in fs/smb/server/vfs_cache.c; the ksmbd module (CONFIG_SMB_SERVER), loaded only where the in-kernel SMB server is in use |
| Affected versions | mainline 6.9 up to 7.4-rc1, plus the stable backport range 6.6.32 to 6.6.162; 6.12.x below 6.12.117, 6.18.x below 6.18.61, 7.3.x below 7.3.2. Kernels older than 6.6.32 lack the code |
| Fixed in | mainline 7.4-rc1 (commit 783a7fc4) and stable 6.6.163, 6.12.117, 6.18.61 and 7.3.2; the fix checks that the path is longer than the share path, starts with it, and continues with a /, and accepts the share root only for an empty name |
| Severity | kernel CNA CVSS 3.1 8.3 High (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H); NVD Received with no score of its own. Red Hat Important but 7.1 (C:L/I:N/A:H, CWE-125) with every RHEL release not affected; Ubuntu High, 8.3; SUSE moderate, 5.9 (AC:H) |
| Exploited in the wild | Not on CISA’s Known Exploited Vulnerabilities list as of 30 November 2026 (catalogue 2026.11.27). EPSS 0.0044 (30th percentile) on 30 November 2026 |
| Who is exposed | hosts running ksmbd with at least two shares whose on-disk paths differ in length, reachable by an authenticated SMB client the administrator would not trust with a kernel crash; the attacker needs a valid SMB login (PR:L) and durable handles, which ksmbd supports by default. Hosts serving SMB with Samba, hosts without the module loaded, and single-share servers are not exposed to the cross-share variant; the same-share variant reads one byte past the buffer |
| Published | CVE record 19 November 2026 (kernel CNA); this page built 30 November 2026, last updated 30 November 2026 |
What it is
SMB2 durable handles let a client keep a file open across a lost connection: the server remembers the open, and the client reconnects it by name. ksmbd checks, on reconnect, that the name the client asks for matches the file the handle really refers to, and it does that in ksmbd_validate_name_reconnect() by taking the file’s absolute path from d_path() and comparing the part after the share’s own path with the requested name. The record describes the slip: it indexes ab_pathname[share->path_sz + 1] “without checking that the path is longer than share->path_sz + 1”, and because d_path() fills its buffer from the end, a path shorter than the share path leaves that index pointing past the buffer.
The reason a path can be shorter than the share path is the second half of the bug: “a durable fp is not bound to its original share”. A client opens a file on a share whose directory is /srv/a, then reconnects the durable handle while connected to a share rooted at some long path, and the server compares the short absolute path against the long share path. strcmp() then runs off the end of the PATH_MAX buffer; with a share path long enough the read crosses into an unmapped page and the kernel oopses, and where it lands on mapped memory “the reconnect succeeds exactly when the out-of-bounds string equals the requested name”, which the record calls a byte-equality oracle on the adjacent heap. That oracle is the confidentiality impact in the CNA’s 8.3, and it is why the score is higher than a plain crash. A same-share variant with the handle at the share root reads exactly one byte past the buffer.
The fix is a precondition check before the comparison: the path must be longer than the share path, must start with it, and the next character must be a slash, with the share root itself accepted only when the requested name is empty. Red Hat’s statement notes that its products “typically rely on user-space Samba”, which is why every RHEL row is not affected; SUSE’s affected list is its 16.x line and SL Micro 6.2, with 15 SPx not affected, and Ubuntu’s is 26.04 and 26.10 only, 24.04 and older being not affected. The exposure, in other words, follows the newer kernels that enable ksmbd, not the installed base.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 30 November 2026; the link in the row is the tracker page, which will be newer than this one.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Tracker unreachable on 30 November 2026 | — |
| Debian | Fixed in trixie, forky and sid; bookworm’s 6.1 kernel not affected (vulnerable code not present); bookworm’s linux-6.12 fixed by DLA-4927-1 | trixie 6.12.117-1; bookworm linux-6.12 6.12.117-1~deb12u1; forky 7.3.4-1; sid 7.3.5-1 |
| Ubuntu | High, CVSS 8.3; 26.10 and 26.04 vulnerable, fix “work in progress”; 24.04 and every older release not affected | 26.10 7.3.0-12.13 and 26.04 7.0.0-45.45 pending on 30 November 2026 |
| RHEL, Rocky, Alma, CentOS Stream | Important (7.1) but not affected on RHEL 6, 7, 8, 9, 10 and OpenShift: ksmbd is not shipped | none needed |
| openSUSE/SLE | moderate, 5.9, Pending (bug 1291790); affected: SLES 16.0 and 16.1, SLE HA 16.x, SLES for SAP 16.x, SL Micro 6.2, openSUSE Leap 16.0 and 16.1; SLE 15 SP4–SP7 and SL Micro 5.x–6.1 not affected | none released on 30 November 2026 |
| Fedora, Arch; self-built kernels | Not consulted; upstream stable versions apply | 6.6.163 / 6.12.117 / 6.18.61 / 7.3.2 or later |
How to check
Three questions, in order: which kernel is running, is ksmbd loaded and listening, and does it export more than one share. Most servers answer no at the second question and are done.
# 1. the running kernel (the package list can be newer than what is booted)
uname -r
dpkg -l 'linux-image-*' 2>/dev/null | awk '/^ii/{print $2, $3}' | tail -3; rpm -q kernel 2>/dev/null | tail -3
# 2. is the in-kernel SMB server in use at all?
lsmod | grep -w ksmbd || echo "ksmbd not loaded"
systemctl is-active ksmbd 2>/dev/null; pgrep -a ksmbd.mountd
ss -tlnp | grep -E ':445\b' # a listener owned by the kernel, not smbd, is ksmbd
# 3. the precondition: two or more shares with paths of different lengths, and durable handles on
grep -nE '^\[|^\s*path\s*=|durable' /etc/ksmbd/ksmbd.conf 2>/dev/nullA kernel at or above the fixed stable version for its series is done. No ksmbd module and no ksmbd.mountd means the vulnerable code is not running, however old the kernel; port 445 owned by smbd is Samba, which is a different code base and not this bug. ksmbd with several shares on an affected kernel, reachable by SMB logins you do not fully trust, is the exposed case, and a crash is the mild outcome.
How to fix it
Install the fixed kernel and reboot; a kernel bug is not patched in place by a package upgrade, and the module stays the old code until the machine boots the new image.
# Debian trixie / sid
apt update && apt install linux-image-amd64 && systemctl reboot
# Ubuntu 26.04 / 26.10: when the pending build lands
apt update && apt full-upgrade && systemctl reboot
# SUSE 16.x: when released
zypper patch && systemctl reboot
# afterwards
uname -rIf you cannot reboot yet, take the module out of service: stop ksmbd, unload it, and serve the shares with Samba, which is what Red Hat and most of the installed base do anyway. Reducing a server to one share removes the cross-share variant but not the one-byte same-share read, so do not treat that as a fix. Nor is turning off durable handles something ksmbd’s configuration offers in a way we could confirm from the sources, so we do not recommend relying on it.
# mitigation: stop the in-kernel server until the kernel is replaced
systemctl disable --now ksmbd
modprobe -r ksmbd
echo 'blacklist ksmbd' > /etc/modprobe.d/ksmbd-cve-2026-99541.conf
lsmod | grep -w ksmbd || echo "ksmbd unloaded"Sources
- CVE-2026-99541 at CVE.org — the kernel CNA record (19 November 2026): the commit message with the mechanism, the git and version ranges, CVSS 3.1 8.3, the affected file
- Fix commits on git.kernel.org: 783a7fc4 (mainline, 7.4-rc1), 89b53997, 0129f719, 93cb902b and 828c02c6 (stable backports); the pages refuse automated readers, so the diff was not read for this page
- NVD entry — Received; no NVD score, CWE or CPE yet
- Distribution trackers: Debian (DLA-4927-1) · Ubuntu (High) · Red Hat (Important, not affected) · SUSE (moderate) · Alpine (unreachable on 30 November)
- EPSS score for this CVE, 30 November 2026
Related reading
- CVE-2026-99388: Linux kernel ksmbd reads and writes past its buffer on crafted SMB Direct RDMA descriptors — the other ksmbd bug from the same 19 November batch
- CVE-2026-99536: Linux kernel ksmbd allows session binding inside a compound request (
cve-2026-99536-linux-kernel-ksmbd-compound-binding, forthcoming) and CVE-2026-99324: ksmbd reads out of bounds when padding the final compound response (cve-2026-99324-linux-kernel-ksmbd-compound-padding, forthcoming) — more of the same server - CVE-2026-99310: Linux kernel NFS server frees an open owner while another request reads it — the in-kernel file server on the other protocol, same month
- Setting Up a Home File Server — Samba, the user-space alternative this page keeps recommending
- The Kernel — why a module bug is a reboot, not a restart
This advisory page was assembled from the primary sources listed above on 30 November 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.

