CONTACT
Trang chủ » Tech News » Two CVSS 9.0 RCE Vulnerabilities in Linux KSMBD: Security Risks in Kernel-Level File Sharing

Two CVSS 9.0 RCE Vulnerabilities in Linux KSMBD: Security Risks in Kernel-Level File Sharing

Picture of @Monica Do

@Monica Do

Content Creator

Two vulnerabilities that could lead to remote code execution in KSMBD have been publicly disclosed on Linux community mailing lists before fixes were integrated into the mainline kernel. Both rated CVSS 9.0 by ZDI, the flaws highlight an urgent need to identify affected systems, reduce the attack surface, and strengthen monitoring while awaiting updates.

KSMBD is an SMB server component that runs within the Linux kernel, enabling file sharing over a network. Unlike services operating in user space, processing requests directly within the kernel means that memory safety vulnerabilities could have serious consequences for the entire server.

The two reports are tracked as ZDI-CAN-33774 and ZDI-CAN-33549. However, their exposure and exploitation requirements differ. Organizations should assess their kernel versions, service configurations, and network accessibility rather than assume that every Linux server is affected.

ZDI-CAN-33774: A Race Condition in SMB Protocol Handling

According to the published technical report, ZDI-CAN-33774 involves a race condition in KSMBD’s protocol handler selection process.

The issue arises when a connection’s protocol state changes while earlier requests are still waiting to be processed. This lack of synchronization can cause SMB1 data to be passed to an SMB2 handler, despite differences in the structure and buffer sizes of the two request types.

As a result, KSMBD may read beyond the allocated buffer, potentially exposing data from kernel memory. The report also describes a processing path that could lead to an out-of-bounds write when additional conditions involving access to a shared resource are met.

Some triggering operations can occur before authentication. However, triggering the bug, leaking memory, and completing a remote code execution exploit are distinct outcomes. An exposed port 445 alone does not establish that an attacker can successfully take control of the server.

ZDI-CAN-33549: A Size Calculation Error in SMB Direct

The second vulnerability affects SMB Direct, which uses Remote Direct Memory Access (RDMA) to provide low-latency data transfers and reduce CPU overhead.

According to the report, an integer underflow occurs when the server processes RDMA buffer descriptors that are inconsistent with the declared data size. The size calculation can wrap around, causing a subsequent copy operation to write beyond the allocated memory.

Exposure depends on the environment meeting specific conditions, including:

  • KSMBD using SMB Direct.
  • An RDMA-capable interface, provided through hardware or a software implementation such as RXE.
  • A writable share and a connection that meets the relevant processing conditions.

The absence of a dedicated RDMA network adapter is therefore insufficient to rule out exposure. Administrators should also review software-based RDMA configurations and active connection paths.

Why KSMBD Vulnerabilities Require Priority Attention

File-sharing services often connect multiple user groups, workstations, and business systems. When network requests are processed within the kernel, a memory safety flaw can have consequences beyond an individual file access session.

Depending on exploitability and deployment architecture, potential risks include:

  • Kernel memory disclosure, which could support subsequent stages of an attack.
  • Service disruption, if the vulnerability causes a kernel fault or server outage.
  • Unauthorized code execution, when an attacker meets the necessary exploitation conditions.
  • Further compromise, if a controlled server provides access to other data and systems.

These are potential impacts that require environment-specific assessment, rather than evidence of widespread exploitation against KSMBD deployments.

The threat is not limited to Internet exposure. A compromised workstation or VPN account could also provide access to SMB services within an internal network.

Public Disclosure and Patch Availability Are Different Milestones

Initial reports on October 22, 2026, indicated that vulnerability details had become public before fixes were integrated into the mainline kernel. During remediation, fixes may first appear in a maintainer’s development branch before reaching release branches and distribution-specific kernel packages.

Consequently, a fix in a development branch does not mean that a deployable update is available for enterprise servers. Conversely, the absence of a new upstream kernel version does not necessarily mean a distribution has not addressed the issue, as fixes may be backported into an existing kernel package.

Organizations should check their distribution’s security advisories, installed package versions, and specific remediation status. Asset discovery and exposure reduction should begin without waiting for a CVE identifier.

AI-assisted vulnerability reporting also requires careful interpretation. Linux kernel documentation states that findings identified with AI assistance must be treated as public. However, it also advises reporters not to publish reproducers and requires them to verify the issue, document triggering conditions, and propose a tested fix. This policy does not imply that all exploitation details should be published immediately.

Other Reports Do Not Expand the Scope of KSMBD Exposure

The same reporting wave included issues affecting other Linux kernel components:

  • ZDI-CAN-33367: An issue involving skb_zerocopy in the networking stack, reported as potentially allowing local privilege escalation.
  • ZDI-CAN-34068: An out-of-bounds write in the VMware graphics driver, vmwgfx, associated with potential local privilege escalation.
  • ZDI-CAN-34076: An issue in the NVMe target component, nvmet, associated with potential information disclosure.

Another report, ZDI-CAN-32005, concerns ConnMan, a network connection management service that operates outside the Linux kernel.

These issues require separate assessments based on the components in use. They should not be grouped into a single SMB risk category or addressed with a common remediation approach.

What Should Organizations Do While Awaiting Updates?

1. Establish an Accurate Inventory of KSMBD Deployments

Identify which servers use KSMBD, which modules are loaded, which services accept connections, and which shares are available. Distinguish KSMBD from Samba running in user space: an open port 445 does not identify the underlying implementation.

Checking loaded modules and service status is only a starting point. A module’s absence from a single listing does not conclusively establish that the component is unavailable, particularly on systems running custom-built kernels.

2. Disable Unnecessary Components

Where KSMBD is not required, stop it and prevent automatic reactivation in accordance with system administration procedures. For services supporting business operations, assess the impact and prepare an alternative before making changes.

3. Restrict SMB Access and RDMA Connectivity

Block direct SMB access from the Internet, allow only necessary sources, and apply network segmentation. Review RDMA connectivity separately for SMB Direct; do not assume that blocking TCP port 445 covers the entire attack surface.

4. Strengthen Monitoring and Investigation

Monitor unusual SMB connections, kernel faults, memory access warnings, and unexplained service interruptions. Correlate network data with system logs to establish context. A kernel crash alone does not confirm an attack, but it warrants investigation when accompanied by suspicious traffic.

5. Track Vendor Updates

Prioritize security advisories and kernel packages supplied by the relevant Linux distribution. After updating, verify that the fix applies to the kernel actually running and complete a reboot where required.

VNCS Global: Managing Exposure While Patches Are Pending

When technical details are public but production-ready updates are not yet available, an organization’s defenses depend on asset visibility, access controls, and the ability to detect abnormal activity.

Reduce exposure today. Strengthen your defenses against vulnerabilities awaiting patches. Connect with VNCS Global to assess risk and develop monitoring and response measures tailored to your organization’s infrastructure.

Các bài viết liên quan
No posts found.