CVE-2024-35861·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: smb: client: fix potential UAF in cifs_signal_cifsd_for_reconnect() 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 the CIFS client reconnection logic. This flaw could allow a local attacker with unprivileged access to trigger a kernel crash or memory corruption when SMB sessions are being torn down. Apply the kernel security update immediately through your distribution's package manager.
sudo dnf check-update kernel && sudo dnf upgrade kernelDefensia detects this vulnerability
How to check if you are affected
- Check your current kernel version with: uname -r (vulnerable if version is between 6.7 and 6.8.4)
- Verify CIFS/SMB client is in use by checking: grep -i cifs /proc/filesystems or mount | grep cifs
- Search kernel logs for UAF indicators: sudo dmesg | grep -iE 'use.after.free|cifs|KASAN|BUG|UAF'
- After patching, reboot and confirm the new kernel is running: uname -r (should be 6.8.5 or later)
FAQ
What is CVE-2024-35861?
CVE-2024-35861 is a use-after-free vulnerability in the Linux kernel's CIFS client code that occurs when signal handlers attempt to reconnect SMB sessions that are actively being torn down. This can lead to kernel memory corruption or denial of service.
Is CVE-2024-35861 being actively exploited?
No, CVE-2024-35861 is not currently listed on CISA's Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available, though the high CVSS score (7.8) indicates it warrants prompt patching.
What versions of Kernel are affected by CVE-2024-35861?
Linux kernel versions 6.7 through 6.8.4 are affected. Version 6.8.5 and later contain the fix.
How do I check if my server is vulnerable to CVE-2024-35861?
Run 'uname -r' and verify if your kernel version is between 6.7 and 6.8.4. If CIFS/SMB is not actively used (check with 'mount | grep cifs'), your exposure is reduced but the kernel should still be patched.
Does Defensia detect CVE-2024-35861?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-35861 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/2cfff21732132e363b4cc275d63ea98f1af726c1
- https://git.kernel.org/stable/c/7e8360ac8774e19b0b25f44fff84a105bb2417e4
- https://git.kernel.org/stable/c/e0e50401cc3921c9eaf1b0e667db174519ea939f
- https://git.kernel.org/stable/c/f9a96a7ad1e8d25dc6662bc7552e0752de74a20d
- https://git.kernel.org/stable/c/2cfff21732132e363b4cc275d63ea98f1af726c1
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-35861. Free for 1 server.
Get started free