CVE-2025-22037
Linux Debian vulnerability analysis and mitigation

Overview

A vulnerability in the Linux kernel's ksmbd module was discovered and assigned CVE-2025-22037. The issue was disclosed on April 16, 2025, affecting the Linux kernel's SMB server implementation. The vulnerability involves a null pointer dereference in the allocpreauthhash() function (NVD Database, Ubuntu Security).

Technical details

The vulnerability occurs when a client sends a malformed SMB2 negotiate request, causing ksmbd to return an error response. Subsequently, the client can send an SMB2 session setup even though conn->preauthinfo is not allocated, leading to a null pointer dereference. The fix implements a KSMBDSESSNEEDSETUP status of connection to ignore session setup requests if the SMB2 negotiate phase is not complete (NVD Database).

Impact

The vulnerability affects multiple Linux distributions including Ubuntu, Debian, and their derivatives. Various versions of the Linux kernel are impacted, including systems running Ubuntu 24.04 LTS, 22.04 LTS, and 20.04 LTS, as well as Debian Bookworm and Bullseye releases (Ubuntu Security, Debian Security).

Mitigation and workarounds

The vulnerability has been fixed in Linux kernel version 6.12.25-1 for Debian systems. Various Linux distributions are actively working on backporting the fix to their supported releases. Ubuntu has marked this as a medium priority issue and is working on updates for affected versions (Debian Security, Ubuntu Security).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management