Bug 2376401 (CVE-2025-38191) - CVE-2025-38191 kernel: ksmbd: fix null pointer dereference in destroy_previous_session
Summary: CVE-2025-38191 kernel: ksmbd: fix null pointer dereference in destroy_previou...
Keywords:
Status: NEW
Alias: CVE-2025-38191
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-04 14:04 UTC by OSIDB Bzimport
Modified: 2025-07-04 19:46 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-07-04 14:04:01 UTC
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().

Comment 1 Mauro Matteo Cascella 2025-07-04 19:43:36 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025070414-CVE-2025-38191-ee47@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.