CVE-2025-38191
MEDIUM 5.5CVSS 3.1In 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
- 4 Jul 2025
- Last modified
- 30 Jul 2026
- Assigned by
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- NVD status
- Modified
- Weakness
- CWE-476
- Sources
- NVDJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | linux | linux_kernelcpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
>= 5.15, < 6.1.142 | 6.1.142 |
| NVD | linux | linux_kernelcpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
>= 6.2, < 6.6.95 | 6.6.95 |
| NVD | linux | linux_kernelcpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
>= 6.7, < 6.12.35 | 6.12.35 |
| NVD | linux | linux_kernelcpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
>= 6.13, < 6.15.4 | 6.15.4 |
| NVD | linux | linux_kernelcpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:* |
= 6.16 | |
| NVD | linux | linux_kernelcpe:2.3:o:linux:linux_kernel:6.16:rc2:*:*:*:*:*:* |
= 6.16 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* |
= 11.0 |
References
- https://git.kernel.org/stable/c/076f1adefb9837977af7ed233883842ddc446644 · Patch
- https://git.kernel.org/stable/c/0902625a24eea7fdc187faa5d97df244d159dd6e · Patch
- https://git.kernel.org/stable/c/1193486dffb7432a09f57f5d09049b4d4123538b · Patch
- https://git.kernel.org/stable/c/281afc52e2961cd5dd8326ebc9c5bc40904c0468 · Patch
- https://git.kernel.org/stable/c/7ac5b66acafcc9292fb935d7e03790f2b8b2dc0e · Patch
- https://www.zerodayinitiative.com/advisories/ZDI-25-610/ · Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html · Third Party Advisory
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 4 Jul 2025)