NULL pointer dereference in Linux
CVE-2025-38191
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().
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.015, 74.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Linux — versions 0626e6641f6b467447c81dd7678a69c66f7746cf, 5.15, 0
- Linux Kernel — versions 6.16
- Debian Linux — versions 11.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (ARPSyndicate/cve-scores, fkie-cad/nvd-json-data-feeds, w4zu/Debian_security). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- git.kernel.org/stable/c/281afc52e2961cd5dd8326ebc9c5bc40904c0468 (Patch)
- git.kernel.org/stable/c/0902625a24eea7fdc187faa5d97df244d159dd6e (Patch)
- git.kernel.org/stable/c/1193486dffb7432a09f57f5d09049b4d4123538b (Patch)
- git.kernel.org/stable/c/076f1adefb9837977af7ed233883842ddc446644 (Patch)
- git.kernel.org/stable/c/7ac5b66acafcc9292fb935d7e03790f2b8b2dc0e (Patch)
- www.zerodayinitiative.com/advisories/ZDI-25-610/ (Third Party Advisory)
- lists.debian.org/debian-lts-announce/2025/10/msg00008.html (Third Party Advisory)