← Vulnerability feed

Vulnerability record · CVE-2025-22037 · published 16 April 2025

CVE-2025-22037: Linux ksmbd null pointer dereference in alloc_preauth_hash()

Linux · Linux Kernel

The Linux kernel ksmbd SMB server dereferences a null pointer in alloc_preauth_hash() when a client sends a malformed SMB2 negotiate request followed by an SMB2 session setup before the negotiate phase completes. Because conn->preauth_info is not allocated in that state, the session setup path crashes the kernel. The flaw is a denial-of-service condition in the in-kernel SMB server.

5.5 CVSS 3.1 Medium EPSS 70% · top 0.7% CWE-476 · NULL pointer dereference
5.5CVSS 3.1 base score
70%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
6References
30 Jul 2026Last modified by NVD

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.

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: medium.

medium priorityThe flaw is a remotely reachable kernel crash in ksmbd with a high EPSS score, but it only causes denial of service and no public exploit or KEV listing is present.

What it is

The Linux kernel ksmbd SMB server dereferences a null pointer in alloc_preauth_hash() when a client sends a malformed SMB2 negotiate request followed by an SMB2 session setup before the negotiate phase completes. Because conn->preauth_info is not allocated in that state, the session setup path crashes the kernel. The flaw is a denial-of-service condition in the in-kernel SMB server.

Impact

An attacker who can reach the ksmbd service can crash the kernel, causing a denial of service on the affected host. The CVSS vector shows only availability impact (A:H) with no confidentiality or integrity loss.

Attack surface

The flaw is reached over the network through SMB2 negotiate and session setup messages handled by ksmbd. The CVSS vector is AV:L/PR:L, indicating the scoring assumes local access with low privileges, though the underlying protocol interaction is remote in nature; no user interaction is required.

Exploitation

No public exploit is referenced in the record, CISA KEV does not list it, and the only non-patch reference is a ZDI advisory. EPSS is high at 0.67588 (99.277th percentile), suggesting elevated predicted exploitation activity despite the absence of confirmed in-the-wild use.

What to do

  • Apply the upstream ksmbd patch from the git.kernel.org stable commits listed in the references, or update to a kernel release containing the fix.
  • If ksmbd is not required, disable or do not load the ksmbd module to remove the attack surface.
  • Restrict SMB2 access to trusted networks and hosts using firewall rules or network segmentation.
  • Monitor for repeated malformed SMB2 negotiate requests followed by session setup attempts against ksmbd.

Detection

  • Watch kernel logs for null pointer dereference or oops messages originating from alloc_preauth_hash() or ksmbd.
  • Alert on ksmbd crashes or unexpected service restarts correlated with SMB2 negotiate/session setup traffic.
  • Inspect SMB2 traffic for negotiate requests that receive error responses immediately followed by session setup attempts.
  • Track host reboots or kernel panics on systems running ksmbd.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2025-22037 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed8.8CVE-2026-53266Linux kernel ebtables SNAT out-of-bounds write in ARP rewriteThe ebtables SNAT target rewrites the ARP sender hardware address via skb_store_bits() without first making that range writable. When the ARP SHA byt…KEVEPSS 0.65%analysed8.8CVE-2023-3079Google Chrome V8 type confusion enables heap corruptionCVE-2023-3079 is a type confusion flaw in the V8 JavaScript engine in Google Chrome before 114.0.5735.110. A crafted HTML page can trigger the confus…KEVEPSS 32%analysed8.8CVE-2013-6282Linux kernel ARM get_user/put_user missing address validationThe get_user and put_user API functions in the Linux kernel before 3.5.5 on v6k and v7 ARM platforms fail to validate certain addresses, allowing cra…KEVEPSS 40%analysed8.4CVE-2022-0185Linux Kernel Filesystem Context Heap Buffer OverflowThe legacy_parse_param function in the Linux kernel's Filesystem Context functionality fails to properly verify supplied parameter lengths, causing a…KEVEPSS 25%analysed8.4CVE-2013-2094Linux Kernel perf_swevent_init Integer Type Flaw Enables Local Privilege EscalationThe perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9 uses an incorrect integer data type, allowing a local user to…KEVEPSS 48%analysed7.8CVE-2026-53362Linux kernel IPv6 UDP paged allocation out-of-bounds write__ip6_append_data() in the Linux kernel mis-accounts fraggap on the paged-allocation path, leaving the linear skb area undersized while pagedlen is o…KEVEPSS 0.71%analysed7.8CVE-2026-31431Linux kernel algif_aead in-place crypto operation flawThe Linux kernel's algif_aead AF_ALG AEAD interface operated in-place on buffers that come from different mappings, a flaw the fix resolves by revert…KEVEPSS 3.4%analysed

Source: NIST National Vulnerability Database (record CVE-2025-22037), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.