CVE-2025-38191: ksmbd: fix null pointer dereference in destroy_previous_session
Vulnerability summary
CVE-2025-38191 is a high (CVSS 7.5) NULL Pointer Dereference vulnerability in debian debian_linux. EPSS estimates a 1.42% chance of exploitation in the next 30 days, higher than 72.9% of scored vulnerabilities.
Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 03-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 26 · Related 22Timeline
- 04-07-2025PublishedVulnerability first disclosed.
- 05-08-2026Last modifiedVulnerability information updated.
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().
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HDiffers
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HDiffers
EPSS trend
Probability
1.42%
Chance of exploitation in the next 30 days
Percentile
73%
Versus all other CVEs
30-day change
Increase +0.10 pp
From 1.32% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu147 products
- linuxAll versions (No fix recorded) | < 6.8.0-100.100
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 6.8.0-1046.49
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Debian2 products
- linux< 6.1.147-1 | < 6.12.35-1
- debian_linuxEOL11.0
Linux2 products
- linux≥ 0626e6641f6b467447c81dd7678a69c66f7746cf, < 281afc52e2961cd5dd8326ebc9c5bc40904c0468 | ≥ 0626e6641f6b467447c81dd7678a69c66f7746cf, < 0902625a24eea7fdc187faa5d97df244d159dd6e | ≥ 0626e6641f6b467447c81dd7678a69c66f7746cf, < 1193486dffb7432a09f57f5d09049b4d4123538b | ≥ 0626e6641f6b467447c81dd7678a69c66f7746cf, < 076f1adefb9837977af7ed233883842ddc446644 | ≥ 0626e6641f6b467447c81dd7678a69c66f7746cf, < 7ac5b66acafcc9292fb935d7e03790f2b8b2dc0e | 5.15
- linux_kernel≥ 5.15, < 6.1.142 | ≥ 6.2, < 6.6.95 | ≥ 6.7, < 6.12.35 | ≥ 6.13, < 6.15.4 | 6.16:rc1 | 6.16:rc2
3 vendors · 151 products
References
34 links- www.zerodayinitiative.com/advisories/ZDI-25-610/Third Party Advisory
- lists.debian.org/debian-lts-announce/2025/10/msg00008.htmlThird Party Advisory