# CVE-2024-50286: ksmbd: fix slab-use-after-free in ksmbd_smb2_session_create

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.68%, higher than 53% of CVEs (2026-12-01)
- Published: 2024-11-19T01:30:29.948Z
- Modified: 2026-08-05T11:43:05.795Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix slab-use-after-free in ksmbd_smb2_session_create

There is a race condition between ksmbd_smb2_session_create and
ksmbd_expire_session. This patch add missing sessions_table_lock
while adding/deleting session from global session table.

(As written by CVE List.)

## Affected

- Linux Linux: from 0626e6641f6b467447c81dd7678a69c66f7746cf before f56446ba5378d19e31040b548a14ee9a8f1500ea; from 0626e6641f6b467447c81dd7678a69c66f7746cf before e923503a56b3385b64ae492e3225e4623f560c5b; from 0626e6641f6b467447c81dd7678a69c66f7746cf before e7a2ad2044377853cf8c59528dac808a08a99c72; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 0a77715db22611df50b178374c51e2ba0d58866e; 5.15 (not affected: before 5.15; from 6.1.117 up to 6.1.*; from 6.6.61 up to 6.6.*; from 6.11.8 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: before 6.1.117; from 6.2 before 6.6.61; from 6.7 before 6.11.8; 6.12

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/f56446ba5378d19e31040b548a14ee9a8f1500ea> (patch)
- <https://git.kernel.org/stable/c/e923503a56b3385b64ae492e3225e4623f560c5b> (patch)
- <https://git.kernel.org/stable/c/e7a2ad2044377853cf8c59528dac808a08a99c72> (patch)
- <https://git.kernel.org/stable/c/0a77715db22611df50b178374c51e2ba0d58866e> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

- CVE List: [CVE-2024-50286](https://www.cve.org/CVERecord?id=CVE-2024-50286), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-50286](https://nvd.nist.gov/vuln/detail/CVE-2024-50286), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-50286 · Whole record: https://cve.day/CVE-2024-50286.json · Rebuilt by cve.day 2026-11-25T22:58:48.414Z
