ksmbd: fix use-after-free in kerberos authentication
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s ksmbd component has a use-after-free during Kerberos authentication. Another thread can access a session user after it is freed but before its pointer is cleared. The input does not specify attacker access requirements, user interaction, or the resulting impact.
Engineers running the Linux kernel with ksmbd should check their systems; affected versions are not specified.