ksmbd: fix user-after-free from session log off
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 user-after-free from session log off
There is racy issue between smb2 session log off and smb2 session setup. It will cause user-after-free from session log off. This add session_lock when setting SMB2_SESSION_EXPIRED and referece count to session struct not to free session while it is being used.
From the CVE record · Linux
A race between SMB2 session logoff and session setup in the Linux kernel's ksmbd component can cause a use-after-free. The input does not specify whether authentication or user interaction is required, or what an attacker can do beyond triggering the flaw.
Engineers running Linux kernels with ksmbd should check their exposure; affected versions were not provided.