CVE-2025-38191

ksmbd: fix null pointer dereference in destroy_previous_session

State
Published
Severity
7.5 High
Published
Jul 4, 2025
Updated
Aug 5, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 281afc52e2961cd5dd8326ebc9c5bc40904c0468Affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 0902625a24eea7fdc187faa5d97df244d159dd6eAffected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 1193486dffb7432a09f57f5d09049b4d4123538bAffected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 076f1adefb9837977af7ed233883842ddc446644Affected
  • 0626e6641f6b467447c81dd7678a69c66f7746cf to before 7ac5b66acafcc9292fb935d7e03790f2b8b2dc0eAffected
LinuxLinux
  • 5.15Affected
  • before 5.15Not affected
  • 6.1.142 through 6.1.*Not affected
  • 6.6.95 through 6.6.*Not affected
  • 6.12.35 through 6.12.*Not affected
  • 6.15.4 through 6.15.*Not affected
  • 6.16 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.