The Linux kernel’s in-kernel SMB server, ksmbd, converts directory entry names to UTF-16 when it answers a directory listing, and it capped the conversion buffer at PATH_MAX. A 2,048-byte ASCII name needs 4,098 bytes in UTF-16 with its terminator, so a long enough name makes ksmbd_convert_dir_info_name() write past the end of its buffer, a heap overflow an authenticated SMB client can trigger with a directory it controls. If a host runs ksmbd (ksmbd.ko loaded, ksmbd.mountd running), move to a kernel at or above 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61 or 7.3.2, or 7.4-rc1, and reboot; until then, keep its shares reachable only from clients you trust. Hosts that share files with Samba’s userspace smbd, or do not share at all, are not affected. The kernel CNA scores it 7.5 with high attack complexity; Red Hat rates it Important at 8.8, Ubuntu High.
CVE-2026-99389 at a glance.
| Component | Linux kernel, ksmbd in-kernel SMB server, directory name conversion (ksmbd_convert_dir_info_name() in fs/smb/server/misc.c) |
| Affected versions | Every kernel with ksmbd since it was merged in 5.15 (commit e2f34481), up to the fixes below; nothing before 5.15 |
| Fixed in | Mainline 7.4-rc1 (commit f1f37834); stable 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61 and 7.3.2 |
| Severity | Kernel CNA: CVSS 3.1 7.5 High (AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H). Red Hat: Important, 8.8 (AC:L, CWE-787); Ubuntu: High, CVSS 4.0 7.7; SUSE: important, 7.5. NVD has not scored it |
| Exploited in the wild | Not on CISA’s KEV catalogue. EPSS 0.0056 (40th percentile) on 30 November 2026 |
| Who is exposed | Hosts that serve SMB with ksmbd, to any client that can authenticate (guest access counts where it is enabled) and create or name a directory entry on a share; ksmbd is not enabled by default on any major distribution and needs an administrator to configure and start it |
| Published | CVE record 19 November 2026 (kernel CNA), updated 23 November; this page built 1 December 2026, last updated 1 December 2026 |
What it is
SMB2 directory queries return entry names in UTF-16, so ksmbd converts each name from the kernel’s UTF-8 as it builds the response. The commit message is short and exact: a 2,048-byte ASCII directory name needs 4,098 bytes when converted to UTF-16, including the terminator, and ksmbd_convert_dir_info_name() capped its allocation at PATH_MAX (4,096 bytes) and then wrote past the end of that buffer. The fix allocates one UTF-16 code unit per input byte plus the terminator, and uses kmalloc_array() so the size arithmetic is checked for overflow. The file is fs/smb/server/misc.c (NVD’s copy of the record names it); git.kernel.org refuses automated readers, so the diff was not read for this page and the description is the commit message’s.
A two-byte overflow of a kernel heap allocation is the kind of primitive that heap exploitation is built on, which is why the CNA gives it full confidentiality, integrity and availability impact and why Red Hat classifies it as an out-of-bounds write. The CNA’s high attack complexity reflects that the attacker needs a name long enough to cross the boundary and some control over heap layout; Red Hat drops that modifier and arrives at 8.8. Either way the attacker has to be an authenticated SMB client, since directory listings need a session, and the names in question have to exist on a share the client can see, which usually means the client created them.
The precondition that matters most is ksmbd itself. Red Hat’s statement says it is not enabled by default and needs an administrator to configure and start it; the same is true on Debian, Ubuntu and SUSE, where the module exists but nothing loads it until ksmbd.mountd is installed and configured. Most Linux file servers run Samba’s userspace smbd, which has its own code and is not touched by this CVE. This is one of a cluster of ksmbd fixes in the 19 and 20 November kernel CNA batch; CVE-2026-99541 (reconnect name validation) and CVE-2026-99388 (SMB Direct) already have pages here.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one.
| Distribution | Status | Fixed package |
|---|---|---|
| Debian bookworm | Vulnerable (6.1 kernel) | linux 6.1.192-3 in bookworm-security still affected; the linux-6.12 package is fixed at 6.12.117-1~deb12u1 (DLA-4927-1) |
| Debian trixie | Fixed | linux 6.12.117-1; trixie-security at 6.12.118-1 |
| Debian forky, sid | Fixed | 7.3.6-1 |
| Ubuntu | High | 22.04 and 24.04 vulnerable, no fix yet; 26.04 work in progress in 7.0.0-45.45, 26.10 in 7.3.0-12.13; 20.04 and older not affected (no ksmbd); the cloud kernels (aws, azure, gcp, gke) are listed as vulnerable on 22.04 to 26.10 |
| RHEL, Rocky, Alma, CentOS Stream | Important, 8.8 | no erratum and no per-product table on the page on 1 December; the statement says ksmbd is not enabled by default and needs an administrator to configure and start it |
| SUSE / openSUSE | important, Pending (bugs 1291072, 1291208) | Affected on SLE 15 SP7, SLES 16.0/16.1, SLE Micro 6.0 to 6.2, SLES 15 SP6-LTSS and openSUSE Leap 15.6/16.x; SLE Micro 5.x and SLE 15 SP5 and older not affected; no update yet |
| Alpine, Arch, Fedora, others | Not consulted | fixed once the kernel is at one of the stable versions above or 7.4-rc1 |
How to check
Three questions: is the running kernel in an affected range, is ksmbd loaded and serving, and who can reach it. Only a host where the second answer is yes is exposed, and on most hosts it is not.
# 1. Running kernel (affected: 5.15 up to 5.15.225, 6.1 < 6.1.193, 6.6 < 6.6.163, 6.12 < 6.12.117, 6.18 < 6.18.61, 7.x < 7.3.2)
uname -r
# 2. Is ksmbd present, loaded, and is the userspace helper running?
modinfo ksmbd 2>/dev/null | grep -E '^(filename|version)'
lsmod | grep -w ksmbd
systemctl is-active ksmbd 2>/dev/null; pgrep -a ksmbd.mountd
ls /sys/class/ksmbd-control 2>/dev/null
# 3. Who can reach it: the listener, and whether guest access is on
sudo ss -tlnp | grep -E ':445 |:139 '
grep -iE 'guest|map to guest' /etc/ksmbd/ksmbd.conf 2>/dev/nullIf step 2 shows no module and no ksmbd.mountd, the host does not run the in-kernel SMB server and this CVE cannot be reached; a Samba server shows smbd on port 445 instead, and that is not affected. If ksmbd is loaded on an affected kernel, every authenticated client is a potential attacker, and with guest access on, everyone who can reach port 445 is. There is no log line that marks an attempt; a kernel oops mentioning ksmbd or misc.c in dmesg is the only trace an unsuccessful one would leave.
How to fix it
Install the fixed kernel and reboot; a kernel update is not live until the new kernel is running, and ksmbd is a module inside it. Debian trixie and sid already have it; Ubuntu 22.04 and 24.04, RHEL and SUSE do not yet, so check the tracker row before expecting the package.
# Debian
sudo apt update && sudo apt install linux-image-amd64 && sudo reboot
# bookworm on the 6.1 kernel: the fixed line is linux-image-6.12 from bookworm-security
sudo apt install linux-image-6.12-amd64 && sudo reboot
# Ubuntu (when the kernel lands)
sudo apt update && sudo apt install linux-generic && sudo reboot
# RHEL / Rocky / Alma (when the erratum lands)
sudo dnf update kernel && sudo reboot
# SUSE / openSUSE (when the update ships)
sudo zypper patch && sudo rebootUntil the kernel is in, the mitigation is to narrow who can talk to ksmbd: firewall port 445 to the clients that need it, turn off guest access, and if the server is not essential, stop it and unload the module, which removes the exposure entirely. Do not rely on a share’s read-only flag; a directory listing is a read, and the long name only has to exist, so a client with no write access can still be handed a crafted tree by someone who has it. Moving the shares to Samba’s smbd is a complete fix for this CVE, at the cost of a different server with its own update cadence.
# Stop and unload ksmbd until the kernel is updated (shares go offline)
sudo systemctl stop ksmbd ksmbd.mountd 2>/dev/null
sudo modprobe -r ksmbd
# Or keep it running but restrict the clients (nftables example)
sudo nft add rule inet filter input tcp dport 445 ip saddr != 10.0.0.0/8 dropSources
- CVE-2026-99389 at CVE.org — the kernel CNA record with the commit message, the git ranges and the stable versions (published 19 November 2026)
- Fix commit f1f37834 (mainline, 7.4-rc1) and the stable backports 534f1360, 9b9d681f, 84e2e9e1, e736ee36, 93d1fbe3 and c8a4c381 — git.kernel.org refuses automated readers, so the diffs were not read for this page
- NVD entry — Received on 1 December 2026, carrying the CNA’s 7.5 and naming
fs/smb/server/misc.c - Distribution trackers: Debian · Ubuntu · Red Hat (with the statement on ksmbd defaults) · SUSE
- EPSS score for this CVE, 30 November 2026
Related reading
- CVE-2026-99563: Linux kernel SMB Direct listener keeps failed connections — the SMB-over-RDMA denial of service from the same batch, same fixed 7.3.2
- CVE-2026-99541: Linux kernel ksmbd durable reconnect out-of-bounds read — another ksmbd flaw fixed in the same stable releases
- CVE-2026-99388: Linux kernel ksmbd SMB Direct RDMA write — the ksmbd RDMA transport flaw, with the same “is ksmbd even running” check
- CVE-2026-99362: Linux kernel nfsd sequence overflow — the other in-kernel file server, and the most serious entry in the November kernel batch
- Security advisories — every CVE page on this site, newest first, with the component index
This advisory page was assembled from the primary sources listed above on 1 December 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.

