CVE-2025-22037high

CVE-2025-22037: high-severity vulnerability in Linux

ksmbd: fix null pointer dereference in alloc_preauth_hash()

Published · Updated

E-mail alert when it lands in KEV, gets a public PoC or its score goes up.

33Vexday Risk Score

No sign of exploitation. No public exploitation artifact known so far.

ssvc Trackcvss 7.5epss 69%
What the vendors declare (VEX)

Official vendor statements in CSAF/VEX format: whether their product is affected, already fixed, or ruled out — and why. These are the vendor's assertions, not Vexday's judgment.

Not affected
5 products (274 components) — because the vulnerable code is not present in the product
Red Hat Enterprise Linux 9 · Red Hat Enterprise Linux 10 · Red Hat Enterprise Linux 8 · Red Hat Enterprise Linux 7 · Red Hat Enterprise Linux 6
In short

A network client can bypass security checks by skipping the proper negotiation phase and sending a malformed request, allowing it to proceed to session setup even though the connection isn't fully initialized. This causes the server to crash or behave unpredictably.

Technical detail

The vulnerability exists in ksmbd's alloc_preauth_hash() function where a null pointer dereference occurs if a client sends a malformed SMB2 negotiate request followed by a session setup request before negotiate phase completion. The attack vector is remote over the network (SMB2 protocol); the server fails to validate that conn->preauth_info is allocated before use. The impact is denial of service or potential information disclosure.

Summary generated and translated by AI from the 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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected products
Linux · Linux