Critical Null Pointer Dereference in Linux Kernel's ksmbd Package

linux Updated 02 Oct 2025

Summary

16/04/2025
N/A
No i
Medium
5.5

CVE-2025-22037: 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. Affects linux versions 6.1.106-1 – 6.9.9-1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is a core component of many operating systems, providing essential services for hardware and software interactions. The ksmbd module allows for SMB (Server Message Block) protocol support, enabling file sharing and network communication. This module is crucial for systems that require interoperability with Windows-based environments. However, vulnerabilities within this module can lead to severe security risks, including unauthorized access and system crashes.

Vulnerability Detail

The vulnerability identified as CVE-2025-22037 arises from a null pointer dereference in the alloc_preauth_hash() function of the ksmbd module. When a client sends a malformed SMB2 negotiate request, ksmbd responds with an error. However, if the client subsequently sends an SMB2 session setup request without the necessary preauth_info being allocated, it can lead to a system crash or unexpected behavior. This vulnerability highlights the importance of proper state management within the connection lifecycle of the ksmbd module.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can avoid sending malformed SMB2 negotiate requests to the ksmbd service until the patch is applied. Additionally, monitoring and filtering network traffic to prevent such requests can mitigate the risk of exploitation.

Conclusion

CVE-2025-22037 is a critical vulnerability in the Linux kernel's ksmbd module that can lead to severe system issues if exploited. Users are strongly advised to update their systems to the latest patched version of the Linux kernel to ensure protection against this vulnerability. Additionally, utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2025-22037 is a vulnerability in the Linux kernel's ksmbd module that can lead to a null pointer dereference, potentially causing system crashes.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected by this vulnerability.

Exploitation of this vulnerability can lead to system crashes, unauthorized access, and disruption of services relying on the ksmbd module.

Yes, a patch is available. Users should update their Linux kernel package to the latest version to mitigate this vulnerability.

If you cannot apply the patch immediately, consider implementing network filters to block malformed SMB2 negotiate requests as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback