CVE-2026-139231: smb: smbdirect: don't WARN on an unexpected receive opcode

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

smb: smbdirect: don't WARN on an unexpected receive opcode

The receive completion handlers smbdirectconnectionrecviodone(), smbdirectacceptnegotiaterecvdone() and smbdirectconnectnegotiaterecvdone() verify that the completion is a regular receive with WARNONONCE(wc->opcode != IBWCRECV).

But 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 IBWCRECVRDMAWITHIMM. An unauthenticated peer can transmit such a message, even before the negotiate completes, so it reaches the accept/connect negotiate handlers as well. With paniconwarn set this is a remote denial of service, and otherwise it still taints the kernel and spams the log for something a peer can trigger at will.

The opcode check itself was inherited from the original client and server recvdone() handlers (fs/smb/client/smbdirect.c and fs/smb/server/transportrdma.c), where an unexpected opcode was simply logged and the connection was torn down. Only the WARNONONCE() was added on top during the socketization rework. Drop the WARNONONCE() and keep the existing graceful error path, which logs the unexpected opcode (unless the status is IBWCWRFLUSHERR) and tears the connection down.

Affected Software

4 affected componentsFixes available
Linux Linux kernel
linux/kernel>=7.1.0<7.3.6
7.3.6
debian/linux<7.3.6-1
7.3.6-1
debian/linux
7.3.6-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.6
  2. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.6-1
  3. Compensating control

    Remove the WARN_ON_ONCE() check for unexpected receive opcodes in the smbdirect receive completion handlers, and retain the graceful error path that logs the unexpected opcode and tears down the connection.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:32 PM
Data Sourced
via MITRE·01:32 PM
Description
Data Sourced
via OSV·01:32 PM
DescriptionAffected Software
Data Sourced
via NVD·02:18 PM
Description

Frequently Asked Questions

1

Who can trigger the issue?

An unauthenticated remote peer can trigger it by sending an RDMA Write with Immediate that is completed as IB_WC_RECV_RDMA_WITH_IMM. This can occur before SMB Direct negotiation has completed.

2

What is the operational impact if the system does not panic on warnings?

The peer-triggered condition can taint the kernel and repeatedly spam the kernel log. If panic_on_warn is enabled, the same condition can cause a remote denial of service.

3

What signs indicate that this condition may have been triggered?

Relevant indicators are a kernel warning related to an unexpected receive completion opcode, kernel tainting, and repeated log messages caused by peer-supplied receive completions. The provided information does not identify affected kernel versions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203