What’s Vulnerable › Vulnerabilities

CVE-2024-50086: ksmbd: fix user-after-free from session log off

Description

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 6.1.114, 6.11.5, 6.6.58. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-50086 or the next vulnerability affects your stack