CVE-2025-22037
JSON

7.5high

ksmbd: fix null pointer dereference in alloc_preauth_hash()

Severity
7.5high CVSS:3.1 by Linux
Exploit likelihood
69.4% (higher than 99% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 0626e6641f6b467447c81dd7678a69c66f7746cf before 2d3461d6ae74ebdcd4d65128c855198649bcadcd, from 0626e6641f6b467447c81dd7678a69c66f7746cf before cce57cd8c5dead24127cf2308fdd60fcad2d6ba6, from 0626e6641f6b467447c81dd7678a69c66f7746cf before ca8bed31edf728a662ef9d6f39f50e7a7dc2b5ad, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 8f216b33a5e1b3489c073b1ea1b3d7cb63c8dc4d, from 0626e6641f6b467447c81dd7678a69c66f7746cf before b8eb243e670ecf30e91524dd12f7260dac07d335, from 0626e6641f6b467447c81dd7678a69c66f7746cf before c8b5b7c5da7d0c31c9b7190b4a7bba5281fc4780, 5.15
Not affected: before 5.15, from 6.1.191 up to 6.1.*, from 6.6.107 up to 6.6.*, from 6.12.23 up to 6.12.*, from 6.13.11 up to 6.13.*, from 6.14.2 up to 6.14.*
CVE List
linux linux_kernelfrom 6.6 before 6.6.107, from 6.12 before 6.12.23, from 6.13 before 6.13.11, from 6.14 before 6.14.2NVD

Classification

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ksmbd: se corrige la desreferencia de puntero nulo en alloc_preauth_hash(). El cliente envía una solicitud de negociación de SMB2 mal formada. ksmbd devuelve una respuesta de error. Posteriormente, el cliente puede enviar la configuración de sesión de SMB2 incluso si conn->preauth_info no está asignado. Este parche añade el estado de conexión KSMBD_SESS_NEED_SETUP para ignorar la solicitud de configuración de sesión si la fase de negociación de SMB2 no se completa.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-22037 changed 2026-10-30CVE Terms of Use
NVDCVE-2025-22037 changed 2026-10-30Public domain