← back
CVE-2025-37924

ksmbd: fix use-after-free in kerberos authentication

CVSS 9.8 CRITICALEPSS 9.1%
In short

A use-after-free vulnerability in Linux kernel's ksmbd Kerberos authentication allows a thread to access freed memory when another thread clears the session user pointer, potentially causing a crash or system compromise.

Technical detail

The vulnerability occurs in ksmbd's Kerberos authentication path where sess->user is freed via ksmbd_free_user but a race condition permits concurrent threads to dereference the freed pointer before it is nullified, leading to use-after-free memory access. This multi-threaded race condition requires no special privileges and can be triggered remotely during Kerberos authentication handshake, resulting in denial of service or potential code execution.

Summary generated and translated by AI from the official description.
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix use-after-free in kerberos authentication Setting sess->user = NULL was introduced to fix the dangling pointer created by ksmbd_free_user. However, it is possible another thread could be operating on the session and make use of sess->user after it has been passed to ksmbd_free_user but before sess->user is set to NULL.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
Linux · Linux

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →