CVE-2025-38191

High

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

SeverityHigh
CVSS7.5
Exploit probability—
ProductLinux Kernel
PublishedJul 4, 2025
First seenJul 4, 2025

How to fix

Update
  • linux linux_kernel6.1.142, 6.6.95, 6.12.35, 6.15.4 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernel5.15 ≤ v < 6.1.142, 6.2 ≤ v < 6.6.95, 6.7 ≤ v < 6.12.35, 6.13 ≤ v < 6.15.4, 6.166.1.142, 6.6.95, 6.12.35, 6.15.4
debian debian_linux11.0—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2025-38191 · Linux Kernel · Dark Radar