CVE-2026-68130

ksmbd: defer destroy_previous_session() until after NTLM authentication

No CVSS score yet EPSS 0.22%

Published 10 Aug 2026 Updated 23 Aug 2026 CNA: Linux

Check your servers for CVE-2026-68130

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-68130 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.8% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before ab0230257ebdf48b07eaa679a8c92bc842fe3498
affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before 370b0ec8822b69c9073265e16b7daaa8201c9a4f
affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before 5c833074b549e5db125436a6f681af682261f785
affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before 243f1614ef2aca2d62a744575f1c24b07cd42757
affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before 18705cace0619fd2123737dcd028147774f38181
affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before 0ff12308c8a6c16ab68f0a487ffa93d69001dc18
affected from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before c74801ee524f477c174a1899782b6c3b6918d407
Other versions: unaffected
Linux
affected 5.15
unaffected before 5.15
unaffected from 5.15.217 up to and including 5.15.*
unaffected from 6.1.183 up to and including 6.1.*
unaffected from 6.6.148 up to and including 6.6.*
unaffected from 6.12.101 up to and including 6.12.*
unaffected from 6.18.42 up to and including 6.18.*
unaffected from 7.1.6 up to and including 7.1.*
unaffected 7.2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-68130 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-68130

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-68130
trivy image --scanners vuln IMAGE | grep CVE-2026-68130

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-68130 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.