Kernel 7.1 moved the SMB-over-RDMA transport shared by the cifs client and the ksmbd server into a common fs/smb/smbdirect/ layer. Its three receive-completion handlers checked that a completion was an ordinary receive with WARN_ON_ONCE(wc->opcode != IB_WC_RECV). The kernel CNA record says “wc->opcode is controlled by the remote peer: a posted receive work request is consumed not only by an incoming SEND, but also by an RDMA Write with Immediate, which completes as IB_WC_RECV_RDMA_WITH_IMM. An unauthenticated peer can transmit such a message, even before the negotiate completes”. With panic_on_warn set that is a remote denial of service; without it the kernel is tainted and the log is spammed by something a peer triggers at will. The CNA and Red Hat score it 7.5. Only kernels 7.1 to 7.3.5 carry the code; if a ksmbd or cifs host on one of those uses SMB Direct, upgrade to 7.3.6 or later, and keep RDMA listeners off untrusted networks.
CVE-2026-139231 at a glance.
| Component | Linux kernel, shared SMB Direct transport (fs/smb/smbdirect/accept.c, connect.c, connection.c): smbdirect_accept_negotiate_recv_done(), smbdirect_connect_negotiate_recv_done(), smbdirect_connection_recv_io_done() |
| Affected versions | from the ea4151222a93 socketisation series: 7.1 up to 7.3 before 7.3.6 and 7.4 before 7.4-rc1. Kernels before 7.1 have the older per-module code in fs/smb/client/smbdirect.c and fs/smb/server/transport_rdma.c, which logged and tore down without the WARN, and are not affected |
| Fixed in | mainline 7.4-rc1 (commit e8592dec, Stefan Metzmacher, authored 9 October 2026, taken by Namjae Jeon; three files, +3/−3) and stable 7.3.6. The change is the same one-line edit in each handler: the WARN_ON_ONCE() wrapper around the opcode test is removed, so an unexpected opcode takes the existing path that logs it (unless the status is a flush error) and tears the connection down. Fixes ea4151222a93, eb3ed1e9048c and d1f187656797; reported by the Sashiko bot |
| Severity | Kernel CNA CVSS 3.1 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H); NVD shows the CNA metric only; Red Hat Important, 7.5 on the same vector (draft, CWE-617 reachable assertion), bug 2587180 “Denial of Service via unexpected receive opcode in SMB Direct”; Ubuntu Medium, no score |
| Exploited in the wild | Not on the CISA KEV catalogue (2026.11.30). EPSS 0.0050 (44th percentile) on 1 December 2026 |
| Who is exposed | A kernel 7.1 to 7.3.5 host that accepts SMB Direct connections (ksmbd with RDMA enabled) or makes them (cifs mounts with the rdma option) over a network an untrusted peer can reach; no SMB authentication is needed because the message lands before negotiation. Red Hat: a denial of service “only where panic_on_warn is enabled”, and SMB Direct over RDMA must be explicitly configured |
| Published | CVE record 30 November 2026 (kernel CNA); this page built 2 December 2026, last updated 2 December 2026 |
What it is
RDMA completions tell the driver what just happened to a work request. A posted receive buffer is normally completed by the peer’s SEND, which is IB_WC_RECV, but the InfiniBand verbs also let the peer perform an RDMA Write with Immediate, which consumes a posted receive on the target and completes it as IB_WC_RECV_RDMA_WITH_IMM. Nothing in the SMB Direct negotiation has to have happened for that: the queue pair exists, the receive is posted, and the peer picks the operation.
The record explains where the assertion came from: the original client and server recv_done() handlers treated an unexpected opcode as a protocol error, logged it and closed the connection. When the two were merged into the shared fs/smb/smbdirect/ layer in 7.1, a WARN_ON_ONCE() was added on top of that check. A warning is a developer’s assertion: it prints a stack trace, taints the kernel and, where panic_on_warn is set, halts the machine. Because all three handlers, the server’s accept path, the client’s connect path and the established-connection path, carried the same wrapper, a single message from an unauthenticated peer reaches it on either side of the connection.
Stefan Metzmacher’s fix, authored on 9 October 2026 and taken into the ksmbd tree by Namjae Jeon, removes the WARN_ON_ONCE() from each of the three tests and nothing else: the condition still fires, the opcode is still logged unless the status is IB_WC_WR_FLUSH_ERR, and the connection is still torn down. Three files change by one line each. The patch carries three Fixes tags naming the 7.1 series that introduced the shared layer, and the report came from the Sashiko review bot.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 2 December 2026; the link in the row is the tracker page, which will be newer than this one. Only kernels from 7.1 contain the shared SMB Direct layer, so every long-term stable series a distribution ships is unaffected; the exposure is on rolling and development releases and on self-built kernels.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Not consulted for this page: the Alpine tracker refused the automated reader on 2 December 2026 | — |
| Debian | bookworm (6.1.x) and trixie (6.12.x) not affected (“vulnerable code not present”); fixed in forky and sid (7.3.6-1); no DSA | unstable 7.3.6-1 |
| Ubuntu | Medium, no Ubuntu CVSS; linux needs evaluation in every supported release (26.10, 26.04 LTS, 24.04 LTS, 22.04 LTS, 20.04 LTS and the ESM releases); no USN on 2 December 2026 | nothing released on 2 December 2026 |
| RHEL, Rocky, Alma, CentOS Stream | Important, 7.5 (bug 2587180, CWE-617); kernel affected in RHEL 10 only; RHEL 6, 7, 8 and 9 and every OpenShift RHCOS image not affected; no errata on 2 December 2026 | — |
| openSUSE/SLE | Not consulted: suse.com refused the automated reader on 2 December 2026 (client error) | — |
| Fedora, Arch; self-built kernels | Not consulted; upstream stable versions apply (Arch and Fedora rawhide ship 7.x kernels) | 7.3.6 or later |
How to check
The first question is the kernel version, because anything below 7.1 does not have the code. On a 7.1 to 7.3.5 host the next questions are whether SMB Direct is in use on either side, whether an RDMA device is present at all, and whether a warning here would become a panic.
# 1. the running kernel: affected 7.1 to 7.3.5; fixed in 7.3.6 or later
uname -r
# 2. RDMA hardware or software devices present (no device, no SMB Direct)
ls /sys/class/infiniband/ 2>/dev/null; rdma link show 2>/dev/null
# 3. ksmbd serving over RDMA, or cifs mounts using it
lsmod | grep -E '^(ksmbd|cifs|smbdirect) '
ss -ltn | grep -E ':(445|5445) '
grep -E ' cifs .*rdma' /proc/mounts
# 4. does a warning halt this host
sysctl kernel.panic_on_warnA kernel older than 7.1 ends the check: the shared layer is not there. On an affected kernel with no /sys/class/infiniband entry there is no queue pair for a peer to write into, and the page does not apply either. A ksmbd host listening on 5445 (the SMB Direct port) or a cifs mount with rdma in its options on an affected kernel is exposed to any peer that can reach the RDMA network, and with kernel.panic_on_warn = 1 the first such message is a reboot.
How to fix it
Update to 7.3.6 or later and reboot. Because only development and rolling kernels are affected there is no distribution errata to wait for except Debian unstable and RHEL 10; a self-built 7.1 to 7.3 kernel can take the three-line patch directly. Until then, keep RDMA listeners on trusted fabrics and make sure a warning is not a panic on these hosts.
# Debian forky / sid (7.3.6-1 carries the fix); trixie and bookworm: watch the tracker row above
apt update && apt install linux-image-amd64 && systemctl reboot# RHEL 10 (the only RHEL release that carries the code): no errata yet on 2 December 2026; when the advisory lands
dnf update kernel && systemctl reboot# Self-built 7.1 to 7.3 kernels: apply the mainline fix and rebuild
# https://github.com/torvalds/linux/commit/e8592dec2e935befe842f90f4044d210f59c4d30.patch
cd /usr/src/linux && patch -p1 < e8592dec.patch && make -j"$(nproc)" && make modules_install install# Interim: restrict the SMB Direct port to known peers, and do not panic on a warning
nft add rule inet filter input tcp dport 5445 ip saddr != 10.0.0.0/8 drop
sysctl -w kernel.panic_on_warn=0Filtering port 5445 covers iWARP and the connection setup, but an RDMA Write with Immediate on an established queue pair travels on the RDMA fabric, so the firewall rule limits who can start a connection rather than what a connected peer can send; the fabric’s own access control is the real boundary until the kernel is fixed. What not to do: do not read the 7.5 as reason to patch 6.x fleets; the record’s range starts at 7.1, and Debian’s stable releases and RHEL 8/9 are marked not affected because the code is not in them.
Sources
- CVE-2026-139231 at CVE.org — the kernel CNA record: the “wc->opcode is controlled by the remote peer” paragraph, the three handlers, the 7.1 lower bound and the git range (30 November 2026)
- Fix commit e8592dec (mainline, 7.4-rc1; Stefan Metzmacher, 9 October 2026;
accept.c,connect.c,connection.c+3/−3; three Fixes tags, Reported-by Sashiko, Signed-off-by Namjae Jeon) and the 7.3 stable backport1f53d5fcin the record (read on GitHub on 2 December 2026; git.kernel.org refuses automated readers) - NVD entry — Received on 30 November 2026; shows the CNA’s metric as its only score, no NVD score or CWE on 2 December 2026
- Distribution trackers: Debian (bookworm and trixie not affected, forky and sid fixed in 7.3.6-1) · Ubuntu (Medium, needs evaluation in every release, no USN) · Red Hat (Important 7.5, bug 2587180, CWE-617, RHEL 10 affected only) · SUSE and Alpine (both refused the automated reader on 2 December 2026)
- CISA KEV catalogue 2026.11.30, not listed · EPSS 0.0050 (percentile 0.444) on 1 December 2026
Related reading
- CVE-2026-99563: Linux kernel SMB Direct listener backlog — the same shared transport, an earlier record
- CVE-2026-99388: Linux kernel ksmbd SMB Direct RDMA flaw — ksmbd’s RDMA path before the socketisation
- CVE-2026-99748: Linux kernel ksmbd durable-handle reconnect trusts client fsids — another unauthenticated-peer problem in the in-kernel SMB server
- CVE-2026-139195: Linux kernel libceph trips a WARN_ON on a server’s bad connect_seq — the same batch’s other peer-triggered WARN, in the Ceph client
- CVE-2026-139288: Linux kernel Soft-RoCE panics on one empty IPv6 datagram — the RDMA stack’s other remote crash from the same day
- The Kernel — what a work completion is and why the peer, not the driver, decides its opcode
This advisory page was assembled from the primary sources listed above on 2 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.

