$RodHat_/search
MOTD

Two KSMBD RCE flaws hit the public mailing list before the patches existed

Published by

This article may contain Amazon affiliate links. I may earn a commission if you buy through them. Disclosure.

Editorial card: Two KSMBD RCE flaws hit the public mailing list before the patches existed
Editorial card: RodHat

Six unpatched Linux kernel vulnerability reports showed up on public mailing lists this week. Trend Micro’s Zero Day Initiative submitted them and, for reasons still being debated, the routing sent them straight to the public list instead of coordinated disclosure. Two of them are CVSS 9.0 flaws in KSMBD.

KSMBD is the SMB file server built directly into the Linux kernel. Not Samba. Not a user-space daemon with a clean process boundary. The actual Microsoft file-sharing protocol, in the kernel, added in 5.15. Rod has filed a standing grievance about this, but here we are.

ZDI-CAN-33774 is a race condition in KSMBD’s queued-request handling. Requests arrive concurrently, state gets shared across the window, and out-of-bounds memory access is the result. Remote code execution is the ceiling on that, and CVSS scores it at 9.0. No patch in mainline as of October 23.

ZDI-CAN-33549 is an integer underflow in KSMBD’s SMB Direct path, the RDMA implementation for InfiniBand and RoCE environments. An incorrect length calculation produces a buffer overflow. This one has a fix in a development branch targeting Linux 7.5. It is not in mainline. It is not in any stable release or distribution kernel.

The other four reports that came out in the same batch: a local privilege escalation in skb_zerocopy networking code (ZDI-CAN-33367), an out-of-bounds write in the VMware graphics driver (ZDI-CAN-34068), information disclosure in NVMe over Fabrics target code (ZDI-CAN-34076), and a stack-buffer overflow in ConnMan (ZDI-CAN-32005, user-space, not kernel).

Greg Kroah-Hartman asked publicly why these were submitted to the public list without patches. ZDI had not explained the routing as of October 23. The current working theory: Trend Micro’s AI scanner found these bugs, and Linux kernel project guidance has language that treats AI-discovered vulnerabilities as already publicly disclosed once found. ZDI’s automation applied that logic and sent the reports down the public-disclosure path. Whether that was intentional or a routing bug in their triage tooling is unclear. The effect is the same either way: two nine-point RCE holes in the kernel’s SMB server are now fully public with no fix available.

To check whether this applies to you:

zcat /proc/config.gz | grep CONFIG_SMB_SERVER

CONFIG_SMB_SERVER=y or =m with the module loaded means KSMBD is present. If it is present and the host is accessible from untrusted networks over SMB, restrict port 445 at the firewall until a patched kernel reaches your distribution. If you do not need KSMBD, which covers most people reading this, disable it. Samba runs in user space and does not carry this attack surface. This week’s PwnEscape fallout is a useful reminder that kernel-resident network code with untrusted input is a category worth taking seriously, and io_uring’s disclosure history is another data point in the same column.

Patches are expected via the Linux 7.5 development cycle, then backported through stable and distribution channels after that. Check your distro’s security tracker.

Sources

  1. Critical Unpatched Linux Kernel Flaws Accidentally Disclosed on Public List (CyberSecurityNews)
  2. Critical Unpatched Linux Kernel Vulnerabilities Accidentally Disclosed, Including Two Remote Code Execution Flaws (GBHackers)