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

High 7.5 Published Updated

A remote attacker can cause a denial of service in the Linux kernel's ksmbd server by sending malformed SMB2 requests that trigger a null pointer dereference.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-22037?

CVE-2025-22037 is a high-severity vulnerability in Linux kernel, published on 16 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-476

Which versions are affected by CVE-2025-22037?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-22037?

Apply the vendor's patch.

Is CVE-2025-22037 being exploited?

There is no known exploitation of CVE-2025-22037 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-22037, DEBIAN-CVE-2025-22037, GHSA-gvg4-xh6r-ggrp, ROOT-OS-DEBIAN-12-CVE-2025-22037, ROOT-OS-UBUNTU-2204-CVE-2025-22037, ROOT-OS-UBUNTU-2404-CVE-2025-22037 and 1 more.

Is CVE-2025-22037 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free