# CVE-2026-68130: ksmbd: defer destroy\_previous\_session() until after NTLM authentication

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-10 · Modified: 2026-08-23
- Aliases: UBUNTU-CVE-2026-68130, DEBIAN-CVE-2026-68130
- Record: https://cvemate.com/vulnerability/CVE-2026-68130 · JSON: https://cvemate.com/vulnerability/CVE-2026-68130/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.139%, percentile 3.455%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 161)

- debian linux (Debian): \< 6.1.187-1 \| \< 6.12.101-1 \| \< 7.1.6-1
- debian linux-6.12 (Debian): \< 6.12.101-1~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-202.212 \| \< 6.8.0-147.147 \| \< 7.0.0-38.38
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1119.126 \| \< 6.8.0-1067.70 \| \< 7.0.0-1014.14
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1119.126~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1069.74~22.04.1
- ubuntu linux-aws-7.0 (Ubuntu): \< 7.0.0-1014.14~24.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1119.126+fips1 \| \< 6.8.0-1067.70+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1125.134 \| \< 6.8.0-1071.79 \| \< 7.0.0-1017.17

## References (first 20 of 32)

- <https://git.kernel.org/stable/c/ab0230257ebdf48b07eaa679a8c92bc842fe3498>
- <https://git.kernel.org/stable/c/370b0ec8822b69c9073265e16b7daaa8201c9a4f>
- <https://git.kernel.org/stable/c/5c833074b549e5db125436a6f681af682261f785>
- <https://git.kernel.org/stable/c/243f1614ef2aca2d62a744575f1c24b07cd42757>
- <https://git.kernel.org/stable/c/18705cace0619fd2123737dcd028147774f38181>
- <https://git.kernel.org/stable/c/0ff12308c8a6c16ab68f0a487ffa93d69001dc18>
- <https://git.kernel.org/stable/c/c74801ee524f477c174a1899782b6c3b6918d407>
- <https://ubuntu.com/security/CVE-2026-68130>
- <https://www.cve.org/CVERecord?id=CVE-2026-68130>
- <https://ubuntu.com/security/notices/USN-8888-1>
- <https://ubuntu.com/security/notices/USN-8889-1>
- <https://ubuntu.com/security/notices/USN-8887-1>
- <https://ubuntu.com/security/notices/USN-8888-2>
- <https://ubuntu.com/security/notices/USN-8887-2>
- <https://ubuntu.com/security/notices/USN-8887-3>
- <https://security-tracker.debian.org/tracker/CVE-2026-68130>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-68130>
- <https://ubuntu.com/security/notices/USN-8917-1>
- <https://ubuntu.com/security/notices/USN-8918-1>
- <https://ubuntu.com/security/notices/USN-8961-1>

---

Data as of 2026-12-05T04:23:22.015Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
