CVE-2025-38562

ksmbd: fix null pointer dereference error in generate_encryptionkey

MEDIUM
5.5
CVSS Score
Published: August 19, 2025 at 05:02 PM UTC
Updated: June 17, 2026 at 09:17 AM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 12%

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix null pointer dereference error in generate_encryptionkey If client send two session setups with krb5 authenticate to ksmbd, null pointer dereference error in generate_encryptionkey could happen. sess->Preauth_HashValue is set to NULL if session is valid. So this patch skip generate encryption key if session is valid.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.15 ≤ v < 5.15.2035.15 ≤ v < 6.1.1485.15 ≤ v < 6.12.425.15 ≤ v < 6.15.105.15 ≤ v < 6.16.15.15 ≤ v < 6.175.15 ≤ v < 6.6.1026.13 ≤ v < 6.15.106.16 ≤ v < 6.16.16.2 ≤ v < 6.6.1026.7 ≤ v < 6.12.425.15626e6641f6b467447c81dd7678a69c66f7746cf
Vendor states this is fixed in 015ef163d65496ae3ba6192c96140a22743f0353 (fixed)
Vendor states this is fixed in 2a30ed6428ce83afedca1a6c5c5c4247bcf12d0e (fixed)
Vendor states this is fixed in 922f85e6e88fdea723a26854c3a6dcb4beb8d0b9 (fixed)
Vendor states this is fixed in 96a82e19434a2522525baab59c33332658bc7653 (fixed)
Vendor states this is fixed in 9b493ab6f35178afd8d619800df9071992f715de (fixed)
Vendor states this is fixed in 9c2dbbc959e1fcc6f603a1a843e9cf743ba383bb (fixed)
Vendor states this is fixed in d79c8bebaa622ee223128be7c66d8aaeeb634a57 (fixed)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 5.15.203 (unaffected)
Vendor states this is fixed in 6.1.148 (unaffected)
Vendor states this is fixed in 6.12.42 (unaffected)
Vendor states this is fixed in 6.15.10 (unaffected)
Vendor states this is fixed in 6.16.1 (unaffected)
Vendor states this is fixed in 6.17 (unaffected)
Vendor states this is fixed in 6.6.102 (unaffected)

References (9)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card