NetSight
high7.5

CVE-2025-38191

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix null pointer dereference in destroy_previous_session If client set ->PreviousSes…

Impact

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

Affected products

VendorProductAffected versions
LinuxLinux Kernel
from 5.15 before 6.1.142
from 6.2 before 6.6.95
from 6.7 before 6.12.35
from 6.13 before 6.15.4
Version 6.16
DebianDebian Linux
Version 11.0

Weakness classification

References