CVE-2025-38191

published 4 Jul 2025 · updated 5 Aug 2026

ksmbd: fix null pointer dereference in destroy_previous_session

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel 076f1adefb9837977af7ed233883842ddc446644, Kernel 0902625a24eea7fdc187faa5d97df244d159dd6e, Kernel 1193486dffb7432a09f57f5d09049b4d4123538b and 2 more.

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().

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.15, >=0626e6641f6b467447c81dd7678a69c66f7746cf <076f1adefb9837977af7ed233883842ddc446644, >=0626e6641f6b467447c81dd7678a69c66f7746cf <0902625a24eea7fdc187faa5d97df244d159dd6e, >=0626e6641f6b467447c81dd7678a69c66f7746cf <1193486dffb7432a09f57f5d09049b4d4123538b, >=0626e6641f6b467447c81dd7678a69c66f7746cf <281afc52e2961cd5dd8326ebc9c5bc40904c0468, >=0626e6641f6b467447c81dd7678a69c66f7746cf <7ac5b66acafcc9292fb935d7e03790f2b8b2dc0e076f1adefb9837977af7ed233883842ddc446644, 0902625a24eea7fdc187faa5d97df244d159dd6e, 1193486dffb7432a09f57f5d09049b4d4123538b, 281afc52e2961cd5dd8326ebc9c5bc40904c0468, 7ac5b66acafcc9292fb935d7e03790f2b8b2dc0e

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-38191 severity on Zeptric[![CVE-2025-38191](https://zeptric.io/badge/cve/CVE-2025-38191.svg)](https://zeptric.io/cve/CVE-2025-38191)