Skip to main content

Linux Kernel ksmbd CVE-2025-22037

HIGH
NULL Pointer Dereference (CWE-476)
2025-04-16 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.5
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach exposed ksmbd on port 445
  2. Delivery
    Send malformed SMB2 negotiate request
  3. Exploit
    ksmbd skips preauth_info allocation
  4. Execution
    Send SMB2 session setup pre-negotiate
  5. Persist
    Trigger NULL deref in alloc_preauth_hash
  6. Impact
    Crash kernel (denial of service)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the target to have the in-kernel SMB server ksmbd compiled, enabled, and listening (typically TCP 445) and reachable by the attacker - this is a non-default configuration that most Linux distributions ship disabled, which is the primary limiting factor. The specific trigger is a protocol-state ordering abuse: the attacker first sends a malformed SMB2 negotiate request (so ksmbd returns an error and never allocates conn->preauth_info), then sends an SMB2 session setup request before the negotiate phase completes, reaching alloc_preauth_hash() with an unallocated structure. No authentication is required (CVSS PR:N), no user interaction (UI:N), and complexity is low (AC:L); the realistic risk is bounded to environments that deliberately run ksmbd as an SMB file-sharing server.

Impact

This is an availability-only denial-of-service flaw (CVSS:3.1 7.5, AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) - a NULL pointer dereference (CWE-476) in the Linux kernel's in-kernel SMB server (ksmbd) that crashes the kernel; there is no confidentiality or integrity impact. The signals are consistent but modest: the CVSS vector indicates a low-complexity, pre-authentication, network-reachable trigger, yet EPSS is only 0.14% (34th percentile) and the CVE is NOT in CISA KEV, so there is no evidence of active or widespread exploitation - 'no public exploit identified at time of analysis.' A Zero Day Initiative advisory (ZDI-25-310) exists, indicating the issue was formally researched and disclosed, but the input does not flag public POC code, so POC availability is unconfirmed. The high CVSS is driven entirely by the A:H availability weight; the real-world priority is tempered by the fact that ksmbd is an optional, non-default kernel component that must be explicitly enabled and exposed. Net: a legitimate patch-worthy remote DoS for systems actually running ksmbd, but not a drop-everything issue - low EPSS and absence from KEV argue against urgent widespread exploitation.

Exploit ScenarioDerived

An attacker with network reach to a host running the in-kernel SMB server (ksmbd) on port 445 sends a malformed SMB2 negotiate request, which ksmbd rejects without allocating conn->preauth_info. The attacker immediately follows with an SMB2 session setup request; ksmbd dereferences the unallocated preauth structure in alloc_preauth_hash(), causing a NULL pointer dereference that panics/crashes the kernel. No authentication or user interaction is required, but there is no public exploit confirmed and the attack yields only denial of service.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Oct 08, 2026

NULL pointer dereference in ksmbd, the Linux kernel's in-kernel SMB server, allows an unauthenticated remote attacker to crash the kernel by abusing SMB2 protocol state ordering - sending a malformed SMB2 negotiate request (which causes ksmbd to return an error without allocating conn->preauth_info) and then issuing an SMB2 session setup request before the negotiate phase is complete. Only systems that have ksmbd compiled, enabled, and listening on TCP 445 are reachable, a non-default configuration most distributions ship disabled, so realistic exposure is limited to hosts deliberately running in-kernel SMB file sharing. Impact is availability-only (CVSS:3.1 7.5, AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H), EPSS is low at 0.14% (34th percentile), vendor patches are available, and no public exploit code has been identified at time of analysis.

Earlier versions of this analysis (1)
v1 Mar 28, 2026 - 18:37 CVSS 5.5

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. Rated medium severity (CVSS 5.5), this vulnerability is low attack complexity.

RemediationAI

Apply the vendor fix by updating to a kernel build that contains the upstream stable commits for this issue (c8b5b7c5da7d0c31c9b7190b4a7bba5281fc4780, b8eb243e670ecf30e91524dd12f7260dac07d335, cce57cd8c5dead24127cf2308fdd60fcad2d6ba6, 8f216b33a5e1b3489c073b1ea1b3d7cb63c8dc4d, ca8bed31edf728a662ef9d6f39f50e7a7dc2b5ad); Ubuntu users should install the kernels from USN-8125-1 and USN-8126-1, and generic guidance is available at the referenced kernel.org and vendor advisories. Where patching is delayed, the most effective compensating control is to stop exposing ksmbd: unload or blacklist the module (modprobe -r ksmbd / add a blacklist entry) and disable ksmbd.service where it is not needed - the trade-off is loss of in-kernel SMB file sharing, so workloads depending on it must use userspace Samba or another file-sharing mechanism. Alternatively, restrict TCP 445 to trusted management networks with host or network firewalls so malformed negotiate/session-setup sequences cannot reach ksmbd - this limits remote reachability but does not fix the underlying dereference for permitted clients. Because the flaw is availability-only (no confidentiality or integrity impact), prioritizing ksmbd-enabled hosts over the rest of the fleet is a reasonable, lower-cost way to manage the residual risk while patches roll out.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

ksmbd is the SMB/CIFS server implemented directly in the Linux kernel (merged in the 5.15 era) as an alternative to userspace Samba, and it processes untrusted network protocol data in kernel context where any memory-safety defect can halt the machine. The flaw is a classic CWE-476 NULL pointer dereference rooted in protocol state-machine ordering: during a healthy SMB2 negotiate exchange, the connection's preauth_info structure is allocated and hash material is later consumed by alloc_preauth_hash(). By first sending a malformed negotiate request, the attacker forces ksmbd to reply with an error and leave conn->preauth_info unallocated, then sends a session setup request that goes down the pre-authentication hashing path and dereferences the missing structure. The upstream fix introduces a KSMBD_SESS_NEED_SETUP connection status so that session setup requests are rejected unless the SMB2 negotiate phase has completed, closing the state-ordering window rather than special-casing the pointer. The provided CPE data (cpe:2.3:o:linux:linux_kernel) reflects that the defect lives in the kernel's stable branches and is fixed by backported commits rather than in a standalone package.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Pre-authentication, low-complexity remote trigger over SMB causing a kernel NULL deref (DoS only), so PR:N/AC:L/A:H with no confidentiality or integrity impact.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Red Hat 5.5 MEDIUM

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

5
Analysis Updated
Oct 08, 2026 - 00:58 vuln.today
v2 - CVSS changed
Severity Changed
Oct 08, 2026 - 00:52 NVD
MEDIUM HIGH
CVSS changed
Oct 08, 2026 - 00:52 NVD
5.5 (MEDIUM) 7.5 (HIGH)
Patch released
Mar 28, 2026 - 18:37 nvd
Patch available
CVE Published
Apr 16, 2025 - 15:15 nvd
MEDIUM 5.5

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

The Linux kernel's ksmbd SMB server (CVE-2025-22037) contains a high-severity NULL pointer dereference that can be triggered by unauthenticated remote attackers to crash the kernel, affecting availability of SMB file sharing. Only systems that have ksmbd explicitly enabled and listening on TCP 445 are susceptible, a non-default configuration, so organizational exposure is limited to hosts deliberately running in-kernel SMB services. With no public exploit identified at time of analysis and a low EPSS score, leadership should prioritize patching any such systems to prevent potential service disruption.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 66% exploitable
Prevalence
Medium
Linux kernel is ubiquitous but ksmbd SMB server is optional and off by default
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Medium

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Micro 5.2 Fixed
SUSE Linux Enterprise Micro 5.2 Fixed
SUSE Linux Enterprise Micro 5.2 Fixed
SUSE Linux Enterprise Micro 5.2 Fixed
SUSE Linux Enterprise Micro 5.3 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy