CVE-2025-38191 Details
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().
A null pointer dereference vulnerability has been identified in the Linux kernel's ksmbd component, specifically during the handling of Kerberos sessions. When a client sets the PreviousSessionId during the Kerberos session setup, it can lead to a null pointer dereference error. This occurs because the session's user information is not yet populated, allowing a null user argument to be passed to the destroy_previous_session function. The vulnerability has been addressed by modifying the sequence of function calls, ensuring that the user information is set before attempting to destroy the previous session.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/076f1adefb9837977af7ed233883842ddc446644 | kernel.org | Patch |
| https://git.kernel.org/stable/c/0902625a24eea7fdc187faa5d97df244d159dd6e | kernel.org | Patch |
| https://git.kernel.org/stable/c/1193486dffb7432a09f57f5d09049b4d4123538b | kernel.org | Patch |
| https://git.kernel.org/stable/c/281afc52e2961cd5dd8326ebc9c5bc40904c0468 | kernel.org | Patch |
| https://git.kernel.org/stable/c/7ac5b66acafcc9292fb935d7e03790f2b8b2dc0e | kernel.org | Patch |
| https://www.zerodayinitiative.com/advisories/ZDI-25-610/ | kernel.org | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html | CVE | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux 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 |
CPE
Remediation
| |
| debian debian linux | 11.0 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 18, 2025 | Initial Analysis | [email protected] |
| Nov 3, 2025 | CVE Modified | CVE |
| Aug 9, 2025 | CVE Modified | kernel.org |
| Jul 4, 2025 | New CVE Received | kernel.org |