CVE-2024-50086·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.11.5
- Published
- 2024-10-29
Affected versions
From: 6.7
Until: 6.11.5
Fixed in: 6.11.5
How to fix this CVE
Update your Linux kernel to version 6.11.5 or later to patch a race condition in the ksmbd SMB server that could allow local privilege escalation through concurrent session management operations. This fix adds proper session locking and reference counting to prevent memory corruption during simultaneous session teardown and setup events.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check kernel version: uname -r — ensure it is 6.11.5 or higher; versions 6.7 through 6.11.4 are vulnerable
- Verify ksmbd service status: systemctl status ksmbd — confirm if SMB server is running and potentially exposed
- Search kernel logs for race condition indicators: grep -i 'use-after-free\|ksmbd\|session' /var/log/kern.log | grep -E '(BUG|KASAN|refcount)'
- Confirm patch application: cat /proc/version — verify kernel release matches or exceeds 6.11.5
FAQ
What is CVE-2024-50086?
CVE-2024-50086 is a race condition vulnerability in the Linux kernel's ksmbd SMB server implementation that occurs when SMB2 session logoff and session setup operations overlap, resulting in use-after-free memory corruption.
Is CVE-2024-50086 being actively exploited?
No, this vulnerability is not listed on the CISA Known Exploited Vulnerabilities catalog and no public exploits are currently available, though the high CVSS score indicates significant local privilege escalation potential.
What versions of Kernel are affected by CVE-2024-50086?
Linux kernel versions 6.7 through 6.11.4 are vulnerable; kernel 6.11.5 and later contain the patch.
How do I check if my server is vulnerable to CVE-2024-50086?
Run 'uname -r' and compare the kernel version output against 6.11.5 — if your version is between 6.7 and 6.11.4, your system is vulnerable.
Does Defensia detect CVE-2024-50086?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2024-50086 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0f62358ce85b2d4c949ef1b648be01b29cec667a
- https://git.kernel.org/stable/c/5511999e9615e4318e9142d23b29bd1597befc08
- https://git.kernel.org/stable/c/7aa8804c0b67b3cb263a472d17f2cb50d7f1a930
- https://git.kernel.org/stable/c/a9839c37fd813b432988f58a9d9dd59253d3eb2c
- https://git.kernel.org/stable/c/ee371898b53a9b9b51c02d22a8c31bfb86d45f0d
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-50086. Free for 1 server.
Get started free