CVE-2026-52911
High · 8.8CVSS
8.8
EPSS
0.7%
Published
Jun 21, 2026
CISA due date
—
Cloudanix analysis
A flaw in some Linux file-sharing servers could let a network attacker access another user's file-sharing session unless the system is updated.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Privilege Gain
- Component
- OS kernel
- Class
- Authorization Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Medium
What it actually does
This flaw affects ksmbd, the in-kernel SMB server implementation in the Linux kernel. During SMB session binding, a connection-wide binding flag could cause ksmbd to perform a global session lookup and resolve sessions by session ID even when the current connection was not actually registered as a channel for that session. In practical terms, a connection that entered the binding path could potentially reach a session object it was not authorized to access. The fix tightens authorization by requiring the session returned from the global lookup to have the current connection registered in the session channel list, limiting the slow-path lookup to legitimately bound sessions only.
Why it matters to the business
Systems using Linux ksmbd to provide SMB file sharing could be exposed to unauthorized session access under specific SMB session-binding conditions. If successfully exploited, this could undermine access controls around SMB sessions and potentially allow unauthorized access to file-sharing operations associated with another authenticated session. The current public risk appears lower because there is no known exploited-in-the-wild status, no ransomware association, and low EPSS probability, but internet- or untrusted-network-exposed SMB services should still be treated as sensitive because file shares often contain business-critical data.
How an attack unfolds
An attacker would need network access to a Linux system running ksmbd and the ability to interact with the SMB protocol. The attacker initiates SMB session setup activity that causes the connection to enter the binding path. Because the vulnerable logic leaves the connection-wide binding flag set, later session lookup behavior can use the global session table rather than only sessions associated with that connection. By supplying or reusing a target session identifier under the right protocol conditions, the attacker may cause ksmbd to resolve a session that was not actually bound to the attacker's connection. The vulnerability is addressed by verifying that the connection is present in the target session's channel list before returning the session, preventing unrelated connections from reaching sessions they have not been accepted into.
How to fix it
Upgrade the Linux kernel to a version that includes the ksmbd fix for this vulnerability. If distribution-specific kernel packages are used, apply the relevant vendor security update rather than relying only on upstream version numbers. Where ksmbd is not required, disable the ksmbd service/module and use an alternative SMB server only if needed. Restrict SMB exposure to trusted networks, block TCP/445 from untrusted sources, and require strong SMB authentication. As compensating controls, limit access to ksmbd shares, segment file-serving systems, and monitor SMB session setup activity until patched.
How to confirm the fix worked
Confirm whether ksmbd is in use by checking for the ksmbd kernel module and related service processes, then verify the installed kernel package includes the vendor fix. Validate that TCP/445 is not exposed to untrusted networks unless explicitly required. After patching, perform a controlled SMB connectivity test to confirm legitimate SMB access still works. For source-based builds, review the ksmbd session lookup logic and confirm global session lookup during binding only returns sessions whose channel list contains the current connection. Vulnerability scanners should be updated to detect the corrected kernel package or backported vendor patch level.
Typical attack path
- Identify a Linux host exposing SMB services backed by ksmbd.
- Establish an SMB connection and perform session setup activity involving session binding.
- Trigger the vulnerable connection-wide binding slow path.
- Reference a session identifier that belongs to another session rather than the attacker's legitimately bound session.
- Cause ksmbd to resolve the unrelated session through the global session lookup path.
- Attempt SMB operations using the improperly resolved session context.
How to detect it
There are no public, unique exploitation artifacts or known threat-actor campaigns associated with this vulnerability at this time. To assess possible prior exploitation, review network and host telemetry for systems running ksmbd. Useful sources include firewall and NetFlow records for TCP/445, SMB server logs if enabled, kernel logs, auditd records, endpoint telemetry, and packet captures where available. Look for unusual SMB2 SESSION_SETUP activity, repeated session binding attempts, unexpected session identifier reuse, authentication activity from unfamiliar clients, SMB operations occurring after anomalous session setup flows, or file access inconsistent with the authenticated user or source host. Because exploitation would occur inside SMB session handling, absence of detailed SMB protocol logging may make retrospective confirmation difficult; correlate suspicious SMB client IPs with file access, authentication, and kernel/service events around the same time window.
What your security team should do
- Inventory Linux systems exposing SMB services and determine whether they use ksmbd rather than user-space Samba.
- Prioritize patching internet-facing or broadly reachable SMB servers first, even though public exploitation maturity is currently low.
- Apply the vendor kernel security update containing the ksmbd session-binding authorization fix.
- Disable ksmbd on systems that do not require in-kernel SMB file sharing.
- Restrict TCP/445 access with host firewalls, network firewalls, VPN requirements, or segmentation.
- Review SMB authentication and file-share authorization policies for least privilege.
- Monitor for unusual SMB session setup, session binding, and repeated authentication attempts against ksmbd servers.
- After patching, verify kernel package versions and reboot systems if required for the fixed kernel to take effect.
The record
In the Linux kernel, the following vulnerability has been resolved: ksmbd: scope conn->binding slowpath to bound sessions only When the binding SESSION_SETUP sets conn->binding = true, the flag stays set after the call so that the global session lookup in ksmbd_session_lookup_all() can find the session, which was not added to conn->sessions. Because the flag is connection-wide, the global lookup path will also resolve any other session by id if asked. Tighten the global lookup so that the returned session must have this connection registered in its channel xarray (sess->ksmbd_chann_list). The channel entry is installed by the existing binding_session path in ntlm_authenticate()/krb5_authenticate() when a SESSION_SETUP completes successfully, so this condition is a strict equivalent of "this connection has been accepted as a channel of this session". Connections that have not bound to a given session cannot reach it via the global table. The existing conn->binding gate for entering the slowpath is preserved so that non-binding connections keep the fast-path-only behavior, and the session->state check is unchanged.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|