CVE-2026-68130

ksmbd: defer destroy_previous_session() until after NTLM authentication

Published Aug 10, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ksmbd: defer destroy_previous_session() until after NTLM authentication

In ntlm_authenticate(), destroy_previous_session() is called using a
user pointer resolved from the client-supplied NTLM blob username field
before the NTLMv2 response is validated. An authenticated attacker can
set the NTLM blob username to match a victim account and set
PreviousSessionId to the victim's session ID; destroy_previous_session()
destroys the victim's session while ksmbd_decode_ntlmssp_auth_blob()
subsequently rejects the request with -EPERM.

Move destroy_previous_session() and the prev_id assignment to after
ksmbd_decode_ntlmssp_auth_blob() returns success and use sess->user
rather than the pre-authentication lookup result. This matches the
ordering already used by krb5_authenticate(), where
destroy_previous_session() is called only after
ksmbd_krb5_authenticate() returns success.

Analysis

AI-generated

Technical impact

In the Linux kernel’s SMB server component, an authenticated user can craft an NTLM authentication blob that carries the victim’s username and a session identifier. Because the code deletes the victim’s previous session before completing NTLM validation, the victim’s session is removed while the transmission is denied, causing the victim’s SMB connection to be dropped. This is an improper ordering of authentication steps that permits a privileged operation—session termination—before establishing valid credentials, which is a privilege escalation flaw that results in a denial of service to the victim’s SMB session. The weakness maps to CWE-269, CWE-640, and CWE-408.

Affected Systems

All Linux kernel installations that have not incorporated the fix from the recent commits described in the references are affected. Any SMB service (smbd) running these kernels can be targeted; the vulnerability is present in the default Linux kernel package regardless of vendor distribution.

Risk and Exploitability

Based on the description, the attack vector is inferred to be an authenticated SMB client that crafts a forged NTLM authentication blob targeting a victim’s username and session ID. The exploit requires the attacker to send this crafted blob over the SMB port, a relatively simple operation for anyone with network access. The EPSS score indicates a very low probability of exploitation (<1 %), and the vulnerability is not listed in the CISA KEV catalog. The technical path is straightforward, and the impact remains high due to forced termination of intact SMB sessions, thereby causing denial of service for the victim.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that contains the ksmbd change where destroy_previous_session is called only after successful NTLM authentication.
  • If a kernel upgrade is not immediately possible, download the source patches from the listed commit URLs and apply them manually to the ksmbd module, ensuring the ordering of destroy_previous_session and previous session ID assignment follows the description.
  • Restart the system or reload the SMB service so that the patched kernel is in use, and verify that attempts to terminate a victim session via forged NTLM blobs no longer succeed.

Generated by OpenCVE AI on August 13, 2026 at 07:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4745-1 linux-6.12 security update
Debian DLA Debian DLA DLA-4777-1 linux security update
Ubuntu USN Ubuntu USN USN-8887-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8889-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8917-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8918-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8961-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9003-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9024-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9025-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9026-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9029-1 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-9040-1 Linux kernel (Low Latency NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9043-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9066-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9091-1 Linux kernel (NVIDIA Tegra) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-408
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-269
CWE-640
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ksmbd: defer destroy_previous_session() until after NTLM authentication In ntlm_authenticate(), destroy_previous_session() is called using a user pointer resolved from the client-supplied NTLM blob username field before the NTLMv2 response is validated. An authenticated attacker can set the NTLM blob username to match a victim account and set PreviousSessionId to the victim's session ID; destroy_previous_session() destroys the victim's session while ksmbd_decode_ntlmssp_auth_blob() subsequently rejects the request with -EPERM. Move destroy_previous_session() and the prev_id assignment to after ksmbd_decode_ntlmssp_auth_blob() returns success and use sess->user rather than the pre-authentication lookup result. This matches the ordering already used by krb5_authenticate(), where destroy_previous_session() is called only after ksmbd_krb5_authenticate() returns success.
Title ksmbd: defer destroy_previous_session() until after NTLM authentication
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-269

    Improper Privilege Management

  • CWE-408

    Incorrect Behavior Order: Early Amplification

  • CWE-640

    Weak Password Recovery Mechanism for Forgotten Password

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 23, 2026, 12:45 PM
Reserved
Jul 30, 2026, 9:28 AM
Status
Received
Published
Aug 10, 2026, 1:19 PM
Modified
Aug 23, 2026, 1:16 PM
Severity
Moderate
Public date
Aug 10, 2026, 11:58 AM