CVE-2024-50286: Linux kernel · ksmbd: fix slab-use-after-free in ksmbd_smb2_session_create
Source GCVE Database
Not known to be exploited · CVSS 7.0 High.
Data as of 30 Oct 2026, 15:50 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 19 Nov 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 30 Oct 2026.
What to do
AI-suggested
A fix for this vulnerability has been implemented in the Linux kernel by adding the missing sessions_table_lock to protect the global session table during session creation and expiration. Users should apply the official kernel patches or update to a fixed kernel version once available. Since this is a kernel-level issue, applying the vendor's official fix is the recommended mitigation.
Description
CVE-2024-50286 is a use-after-free vulnerability in the Linux kernel's ksmbd component, specifically in the ksmbd_smb2_session_create function. The flaw arises from a race condition between session creation and session expiration, due to missing locking on the global session table. This vulnerability has been fixed by adding the necessary sessions_table_lock to prevent concurrent access issues.
References
- nvd.nist.gov/vuln/detail/CVE-2024-50286 (opens in a new tab)
- git.kernel.org/stable/c/0a77715db22611df50b178374c51e2ba0d58866e (opens in a new tab)
- git.kernel.org/stable/c/e7a2ad2044377853cf8c59528dac808a08a99c72 (opens in a new tab)
- git.kernel.org/stable/c/e923503a56b3385b64ae492e3225e4623f560c5b (opens in a new tab)
- git.kernel.org/stable/c/f56446ba5378d19e31040b548a14ee9a8f1500ea (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/01/msg00001.html (opens in a new tab)