CVE-2026-99563: Linux kernel SMB Direct listener keeps failed connections until nothing can connect

ByLinuxtastic

November 30, 2026 #CVE, #Linux Kernel

The Linux kernel’s SMB Direct transport, which carries SMB over RDMA for the in-kernel ksmbd server, kept every connection that failed before it was accepted on the listener’s pending list, where it counted against the backlog until the listener itself was destroyed. After about ten such failures (ksmbd’s backlog) the listener rejected every new connection with -EBUSY, so an unauthenticated peer could stop a server accepting SMB Direct connections for good. If a host serves SMB over RDMA with ksmbd on a 7.1, 7.2 or 7.3 kernel, move to 7.2.15, 7.3.2 or 7.4-rc1 and reboot; until then, restrict the RDMA listener to the hosts that use it. Nothing before 7.1 has the code, TCP shares are not affected, and ksmbd is off by default everywhere. The kernel CNA and Red Hat both score it 7.5; Ubuntu rates it High, SUSE moderate with every product unaffected.

CVE-2026-99563 at a glance.

ComponentLinux kernel, shared SMB Direct (RDMA) transport used by ksmbd: fs/smb/smbdirect/listen.c, accept.c, socket.c, socket.h, internal.h
Affected versions7.1 up to 7.2.14 and 7.3.0 to 7.3.1 (the listener code arrived in 7.1 with commit dc691b91); nothing before 7.1, which includes every long-term kernel the distributions ship today
Fixed inMainline 7.4-rc1 (commit 328c7e30); stable 7.2.15 and 7.3.2
SeverityKernel CNA: CVSS 3.1 7.5 High (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H). Red Hat: Important, 7.5 (CWE-772); Ubuntu: High, CVSS 4.0 8.7; SUSE: moderate, 6.5 (AV:A). NVD has not scored it
Exploited in the wildNot on CISA’s KEV catalogue. EPSS 0.0061 (43rd percentile) on 30 November 2026
Who is exposedksmbd servers with SMB Direct enabled on an RDMA-capable network, to any peer that can open an RDMA connection to the listener; no SMB session is needed, since the failure happens before acceptance. Ordinary SMB over TCP, Samba’s smbd, and every kernel older than 7.1 are not affected
PublishedCVE record 19 November 2026 (kernel CNA), updated 22 November; this page built 1 December 2026, last updated 1 December 2026

What it is

Kernel 7.1 moved the SMB Direct socket code shared by the SMB client and ksmbd into fs/smb/smbdirect/, with a listener that queues incoming RDMA connections on a pending list and a ready list until the server accepts them. The commit message describes the gap: a child socket only left those lists through smbdirect_socket_accept() or when the listener was destroyed, so a connection that failed before acceptance, through a negotiate timeout, a peer disconnect or an invalid negotiate request, stayed on the list and kept its slot in the backlog. ksmbd’s backlog is ten. Once ten connections had failed that way, smbdirect_listen_connect_request() answered every new one with -EBUSY, and the only way back was to destroy the listener, which in practice means restarting the server.

The fix adds an orphaned list: a failed child moves itself there at the end of smbdirect_socket_cleanup_work(), after its disconnect has started, and queues a purge work item that releases it with smbdirect_socket_release() without holding the listener’s RDMA handler lock, the same way the listener’s own destroy path handles its remaining children. Orphaned sockets still count against the backlog until they are released, but they are released promptly rather than never. The commit also makes a listener socket free through kfree_rcu() so a child can dereference its listener safely, and routes every change of a child’s accept.listener through the listener’s lock with a clear rule about who releases what. The files are the five named in the box; git.kernel.org refuses automated readers, so the diff was not read and this is the commit message’s account.

Three things keep the practical exposure small. The code is new, so no long-term kernel older than 7.1 has it, and SUSE’s tracker lists every one of its products as not affected for that reason; Debian notes the vulnerable code is not present in bookworm or trixie. SMB Direct needs RDMA hardware or soft-RoCE and explicit configuration in ksmbd. And ksmbd itself is not enabled by default on any major distribution. Where all three line up, though, the attacker needs nothing but network reach to the RDMA port, which is why the CNA, Red Hat and Ubuntu all score it as an unauthenticated remote denial of service.

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.

DistributionStatusFixed package
Debian bookworm, trixieNot affected“vulnerable code not present” on the 6.1 and 6.12 kernels
Debian forky, sidFixedforky 7.3.4-1, sid 7.3.5-1; the tracker’s fixed version is 7.2.15-1
UbuntuHigh26.10 vulnerable, work in progress in 7.3.0-12.13 (also its aws, azure, gcp, oracle, raspi, realtime and riscv kernels); 26.04 and every older release not affected (7.0 and older kernels)
RHEL, Rocky, Alma, CentOS StreamImportant, 7.5no erratum and no per-product table on the page on 1 December; the statement says ksmbd and SMB Direct are not configured or activated by default. No RHEL release ships a 7.1 or newer kernel
SUSE / openSUSEmoderate, Resolved (bug 1291921)every listed product and kernel package not affected
Alpine, Arch, Fedora, othersNot consultedfixed once the kernel is at 7.2.15, 7.3.2 or 7.4-rc1; a rolling distribution on 7.1 to 7.3.1 is the likeliest place to find the affected code

How to check

Three questions: is the running kernel 7.1 or newer and below the fix, is ksmbd serving, and is SMB Direct turned on with an RDMA device present. All three have to be yes for the host to be exposed.

# 1. Running kernel (affected: 7.1.x, 7.2.0-7.2.14, 7.3.0-7.3.1; anything older does not have the code)
uname -r

# 2. Is ksmbd loaded and serving?
lsmod | grep -w ksmbd
systemctl is-active ksmbd 2>/dev/null; pgrep -a ksmbd.mountd

# 3. Is SMB Direct on, and is there an RDMA device for it to use?
grep -iE 'smb[ _-]?direct|rdma' /etc/ksmbd/ksmbd.conf 2>/dev/null
ls /sys/class/infiniband 2>/dev/null
rdma link show 2>/dev/null
sudo ss -lnp | grep -E ':5445 |:445 '
# Signs of the condition on a running server: new RDMA connections refused while TCP shares still work
dmesg | grep -iE 'smbdirect|ksmbd' | tail -n 50
# a client trying SMB Direct against a wedged listener falls back to TCP or fails to connect; on the server,
# the pending list is not exposed in /proc, so the symptom is the refusal itself

If step 1 shows a kernel older than 7.1, stop: the listener code is not there. If ksmbd is not loaded, or step 3 shows no RDMA device and no SMB Direct setting, the transport is not in use and the flaw cannot be reached even on an affected kernel. If all three are yes, anything that can open an RDMA connection to the server, ten times, can wedge it; the only recovery on the affected kernel is to restart ksmbd, and the only lasting fix is the kernel update. A server that keeps refusing SMB Direct connections while TCP shares work is showing the condition.

How to fix it

Install a kernel at 7.2.15, 7.3.2 or later and reboot. On the distributions that have the affected code at all this is a rolling-release or development-release update; Ubuntu 26.10 is the one named release still waiting, with the fix in progress.

# Debian forky / sid
sudo apt update && sudo apt install linux-image-amd64 && sudo reboot

# Ubuntu 26.10 (when the kernel lands)
sudo apt update && sudo apt install linux-generic && sudo reboot

# Arch and other rolling distributions
sudo pacman -Syu linux && sudo reboot

# Confirm after the reboot
uname -r

Until then, the exposure is an RDMA listener, so narrow it to the hosts that need it and keep SMB clients on TCP where RDMA is not buying anything; turning SMB Direct off in ksmbd.conf and restarting the server removes the flaw entirely at the cost of the RDMA data path. If the listener does wedge, restarting ksmbd clears the pending list and brings it back. Do not raise the backlog as a mitigation; it only changes how many failed connections it takes, and the attacker chooses that number.

# Recover a wedged listener (shares drop briefly)
sudo systemctl restart ksmbd.mountd ksmbd 2>/dev/null || { sudo ksmbd.control -s; sudo ksmbd.mountd; }

# Or disable SMB Direct until the kernel is updated, then restart ksmbd
sudo sed -i 's/^\s*smb[ _-]*direct\s*=.*/smbdirect = no/I' /etc/ksmbd/ksmbd.conf 2>/dev/null
sudo systemctl restart ksmbd.mountd ksmbd

Sources

  • CVE-2026-99563 at CVE.org — the kernel CNA record with the full commit message, the git ranges and the stable versions (published 19 November 2026)
  • Fix commit 328c7e30 (mainline, 7.4-rc1) and the stable backports c1327952 and df7e97ff — git.kernel.org refuses automated readers, so the diffs were not read for this page
  • NVD entry — Received on 1 December 2026 with no score, naming the five files in fs/smb/smbdirect/
  • Distribution trackers: Debian · Ubuntu · Red Hat (with the statement on defaults) · SUSE
  • EPSS score for this CVE, 30 November 2026

Related reading

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.