CVE-2025-22037

Published Apr 16, 2025

Last updated 4 months ago

Overview

AI description

Automated description summarized from trusted sources.

CVE-2025-22037 is a vulnerability in the Linux kernel, specifically within the ksmbd subsystem. It stems from a null pointer dereference in the `alloc_preauth_hash()` function. The vulnerability can be triggered when a client sends a malformed SMB2 negotiate request, and the ksmbd server returns an error response. Subsequently, the client can send an SMB2 session setup request even though `conn->preauth_info` is not allocated. This leads to a null pointer dereference. An unauthenticated, remote attacker can exploit this flaw to cause a system crash or hang.

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.
Source
416baaa9-dc9f-4396-8d5f-8c081fb06d67
NVD status
Analyzed
Products
linux_kernel

Risk scores

CVSS 3.1

Type
Primary
Base score
5.5
Impact score
3.6
Exploitability score
1.8
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Severity
MEDIUM

Weaknesses

nvd@nist.gov
CWE-476

Social media

Hype score
Not currently trending

Configurations