CVE-2025-22037

ksmbd: fix null pointer dereference in alloc_preauth_hash()

HIGH
7.5
CVSS Score
Published: April 16, 2025 at 02:11 PM UTC
Updated: October 8, 2026 at 12:46 AM UTC
1 product affected across 1 vendorLinux Kernel

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
HIGH7.5
Exploit prediction
EPSS 70%

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix null pointer dereference in alloc_preauth_hash() The Client send malformed smb2 negotiate request. ksmbd return error response. Subsequently, the client can send smb2 session setup even thought conn->preauth_info is not allocated. This patch add KSMBD_SESS_NEED_SETUP status of connection to ignore session setup request if smb2 negotiate phase is not complete.

Affected

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

6.12 ≤ v < 6.12.236.13 ≤ v < 6.13.116.14 ≤ v < 6.14.26.6 ≤ v < 6.6.107*0626e6641f6b467447c81dd7678a69c66f7746cf5.15626e6641f6b467447c81dd7678a69c66f7746cf
Vendor states this is fixed in 8f216b33a5e1b3489c073b1ea1b3d7cb63c8dc4d (fixed)
Vendor states this is fixed in b8eb243e670ecf30e91524dd12f7260dac07d335 (fixed)
Vendor states this is fixed in c8b5b7c5da7d0c31c9b7190b4a7bba5281fc4780 (fixed)
Vendor states this is fixed in ca8bed31edf728a662ef9d6f39f50e7a7dc2b5ad (fixed)
Vendor states this is fixed in cce57cd8c5dead24127cf2308fdd60fcad2d6ba6 (fixed)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 6.12.23 (unaffected)
Vendor states this is fixed in 6.13.11 (unaffected)
Vendor states this is fixed in 6.14.2 (unaffected)
Vendor states this is fixed in 6.15 (unaffected)
Vendor states this is fixed in 6.6.107 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8f216b33a5e1b3489c073b1ea1b3d7cb63c8dc4d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b8eb243e670ecf30e91524dd12f7260dac07d335
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c8b5b7c5da7d0c31c9b7190b4a7bba5281fc4780
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ca8bed31edf728a662ef9d6f39f50e7a7dc2b5ad
Third Party Advisory
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://www.zerodayinitiative.com/advisories/ZDI-25-310/

CVSS

7.5HIGHLinux
Vector?

Quick Info

StatusANALYZED
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