CVE-2025-38191ksmbd: fix null pointer dereference in destroy_previous_session
- 7.5HighCVSS base score
- 1.5%Exploitation in 30 daysEPSS · top 26% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix null pointer dereference in destroy_previous_session If client set ->PreviousSessionId on kerberos session setup stage, NULL pointer dereference error will happen. Since sess->user is not set yet, It can pass the user argument as NULL to destroy_previous_session. sess->user will be set in ksmbd_krb5_authenticate(). So this patch move calling destroy_previous_session() after ksmbd_krb5_authenticate().
Timeline
ID reserved
By Linux
- 3 months later
· 3 months later
Published
- 13 months later
· 13 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| LinuxCNA (assigner) | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVDNVD · Modified | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 1.5% · top 26% of all CVEs (15 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
- affected 0626e6641f6b467447c81dd7678a69c66f7746cf – < 281afc52e2961cd5dd8326ebc9c5bc40904c0468
- affected 0626e6641f6b467447c81dd7678a69c66f7746cf – < 0902625a24eea7fdc187faa5d97df244d159dd6e
- affected 0626e6641f6b467447c81dd7678a69c66f7746cf – < 1193486dffb7432a09f57f5d09049b4d4123538b
- affected 0626e6641f6b467447c81dd7678a69c66f7746cf – < 076f1adefb9837977af7ed233883842ddc446644
- affected 0626e6641f6b467447c81dd7678a69c66f7746cf – < 7ac5b66acafcc9292fb935d7e03790f2b8b2dc0e
- affected 5.15
- unaffected < 5.15
- unaffected 6.1.142 – ≤ 6.1.*
- unaffected 6.6.95 – ≤ 6.6.*
- unaffected 6.12.35 – ≤ 6.12.*
- unaffected 6.15.4 – ≤ 6.15.*
- unaffected 6.16 – ≤ *
References
References7
- https://git.kernel.org/stable/c/281afc52e2961cd5dd8326ebc9c5bc40904c0468 (opens in a new tab)
- https://git.kernel.org/stable/c/0902625a24eea7fdc187faa5d97df244d159dd6e (opens in a new tab)
- https://git.kernel.org/stable/c/1193486dffb7432a09f57f5d09049b4d4123538b (opens in a new tab)
- https://git.kernel.org/stable/c/076f1adefb9837977af7ed233883842ddc446644 (opens in a new tab)
- https://git.kernel.org/stable/c/7ac5b66acafcc9292fb935d7e03790f2b8b2dc0e (opens in a new tab)
- https://www.zerodayinitiative.com/advisories/ZDI-25-610/ (opens in a new tab)
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-20065 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-38191)Record last updated .