### [CVE-2024-50086](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-50086) ![](https://img.shields.io/static/v1?label=Product&message=Linux&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=&color=brightgreen) ![](https://img.shields.io/static/v1?label=Version&message=0626e6641f6b467447c81dd7678a69c66f7746cf%20&color=brightgreen) ![](https://img.shields.io/static/v1?label=Version&message=5.15%20&color=brightgreen) ![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=blue) ### Description In the Linux kernel, the following vulnerability has been resolved:ksmbd: fix user-after-free from session log offThere 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 referececount to session struct not to free session while it is being used. ### POC #### Reference No PoCs from references. #### Github - https://github.com/fkie-cad/nvd-json-data-feeds