CVE-2024-50086: Linux kernel · ksmbd: fix user-after-free from session log off
Source GCVE Database
Not known to be exploited · CVSS 7.0 High.
Data as of 29 Oct 2026, 23:31 UTC
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 29 Oct 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
AI-suggested
A fix has been implemented in the Linux kernel to address this issue by adding proper locking and reference counting to the session structure. Users should apply the official kernel updates that include this fix.
Description
CVE-2024-50086 is a use-after-free vulnerability in the Linux kernel's ksmbd component caused by a race condition between SMB2 session log off and session setup. The issue occurs when a session is freed while still in use, potentially leading to memory corruption. The vulnerability has a high severity with a CVSS score of 7.0.
References
- nvd.nist.gov/vuln/detail/CVE-2024-50086 (opens in a new tab)
- git.kernel.org/stable/c/0f62358ce85b2d4c949ef1b648be01b29cec667a (opens in a new tab)
- git.kernel.org/stable/c/5511999e9615e4318e9142d23b29bd1597befc08 (opens in a new tab)
- git.kernel.org/stable/c/7aa8804c0b67b3cb263a472d17f2cb50d7f1a930 (opens in a new tab)
- git.kernel.org/stable/c/a9839c37fd813b432988f58a9d9dd59253d3eb2c (opens in a new tab)
- git.kernel.org/stable/c/ee371898b53a9b9b51c02d22a8c31bfb86d45f0d (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/01/msg00001.html (opens in a new tab)