CVE-2024-35862·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: smb: client: fix potential UAF in smb2_is_network_name_deleted() Skip sessions that are being teared down (status == SES_EXITING) to avoid UAF.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.8.5
- Published
- 2024-05-19
Affected versions
From: 6.7
Until: 6.8.5
Fixed in: 6.8.5
How to fix this CVE
Update your Linux kernel to version 6.8.5 or later to patch a use-after-free vulnerability in SMB client network session handling. This vulnerability could allow local attackers with user privileges to trigger memory corruption during SMB network share disconnection scenarios. Apply the kernel update through your distribution's package manager and reboot your system.
sudo dnf update kernel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check current kernel version: uname -r (vulnerable if output shows 6.7.x or 6.8.0-6.8.4)
- Verify SMB client module is loaded: lsmod | grep cifs (indicates potential exposure if present)
- Search kernel logs for SMB session errors: sudo dmesg | grep -i 'smb\|cifs\|session' | head -20
- Confirm patched kernel is running after update: uname -r (should show 6.8.5 or higher)
FAQ
What is CVE-2024-35862?
This is a use-after-free memory vulnerability in the Linux kernel's SMB client implementation that occurs when processing network share disconnections. If a session is torn down while being accessed, attackers with local user privileges could cause memory corruption or escalate privileges.
Is CVE-2024-35862 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are currently available.
What versions of Kernel are affected by CVE-2024-35862?
Linux kernel versions 6.7.x through 6.8.4 are vulnerable. Version 6.8.5 and later contain the fix.
How do I check if my server is vulnerable to CVE-2024-35862?
Run 'uname -r' to check your kernel version. If it shows 6.7.x or 6.8.0 through 6.8.4, your system is vulnerable. Additionally, check if CIFS/SMB is in use with 'lsmod | grep cifs'.
Does Defensia detect CVE-2024-35862?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-35862 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/63981561ffd2d4987807df4126f96a11e18b0c1d
- https://git.kernel.org/stable/c/aa582b33f94453fdeaff1e7d0aa252c505975e01
- https://git.kernel.org/stable/c/d919b6ea15ffa56fbafef4a1d92f47aeda9af645
- https://git.kernel.org/stable/c/f9414004798d9742c1af23a1d839fe6a9503751c
- https://git.kernel.org/stable/c/63981561ffd2d4987807df4126f96a11e18b0c1d
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-35862. Free for 1 server.
Get started free