CVE-2025-38191

Source
https://cve.org/CVERecord?id=CVE-2025-38191
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38191.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38191
Downstream
Related
Published
2025-07-04T13:37:15.736Z
Modified
2026-03-20T12:42:44.044754Z
Summary
ksmbd: fix null pointer dereference in destroy_previous_session
Details

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix null pointer dereference in destroyprevioussession

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 destroyprevioussession. sess->user will be set in ksmbdkrb5authenticate(). So this patch move calling destroyprevioussession() after ksmbdkrb5authenticate().

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38191.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0626e6641f6b467447c81dd7678a69c66f7746cf
Fixed
281afc52e2961cd5dd8326ebc9c5bc40904c0468
Fixed
0902625a24eea7fdc187faa5d97df244d159dd6e
Fixed
1193486dffb7432a09f57f5d09049b4d4123538b
Fixed
076f1adefb9837977af7ed233883842ddc446644
Fixed
7ac5b66acafcc9292fb935d7e03790f2b8b2dc0e

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38191.json"