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.
Published: 2026-08-10
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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
History

Sun, 23 Aug 2026 13:15:00 +0000


Wed, 19 Aug 2026 16:45:00 +0000


Wed, 12 Aug 2026 00:15:00 +0000

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


Mon, 10 Aug 2026 19:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-269
CWE-640

Mon, 10 Aug 2026 12:30:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-23T12:45:52.403Z

Reserved: 2026-07-30T09:28:09.370Z

Link: CVE-2026-68130

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-10T13:19:58.337

Modified: 2026-08-23T13:16:33.353

Link: CVE-2026-68130

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-10T11:58:52Z

Links: CVE-2026-68130 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T07:45:17Z

Weaknesses
  • CWE-269

    Improper Privilege Management

  • CWE-408

    Incorrect Behavior Order: Early Amplification

  • CWE-640

    Weak Password Recovery Mechanism for Forgotten Password