CVE-2024-35866·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: smb: client: fix potential UAF in cifs_dump_full_key() 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 resolve a use-after-free (UAF) condition in the CIFS client's key dumping function. This vulnerability could allow a local privileged user to cause a kernel crash or potentially execute arbitrary code during SMB session teardown. Apply the kernel update immediately on all affected systems running kernel versions 6.7 through 6.8.4.
sudo dnf check-update kernel && sudo dnf update kernelDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version with: uname -r
- Step 2: Verify if kernel version is between 6.7 and 6.8.4 (inclusive) by comparing output to fixed version 6.8.5
- Step 3: Search system logs for UAF-related kernel panics: sudo grep -i 'use.*after.*free\|UAF\|cifs_dump_full_key' /var/log/kern.log /var/log/syslog
- Step 4: After updating, reboot the system and confirm new kernel version with: uname -r (should be 6.8.5 or later)
FAQ
What is CVE-2024-35866?
CVE-2024-35866 is a use-after-free vulnerability in the Linux kernel's CIFS client implementation, specifically in the cifs_dump_full_key() function that handles SMB session key operations. When a CIFS session is being torn down, the kernel may attempt to access memory that has already been freed, potentially leading to denial of service or privilege escalation.
Is CVE-2024-35866 being actively exploited?
No, CVE-2024-35866 is not currently listed as actively exploited by CISA, and no public exploits are known to be available. However, the vulnerability still requires patching as it is exploitable by local users with elevated privileges.
What versions of Kernel are affected by CVE-2024-35866?
Linux kernel versions 6.7 through 6.8.4 are vulnerable. The vulnerability was resolved in kernel version 6.8.5 and later.
How do I check if my server is vulnerable to CVE-2024-35866?
Run 'uname -r' to display your kernel version. If the output shows a version between 6.7 and 6.8.4 (e.g., 6.8.2, 6.8.3), your system is vulnerable and requires immediate patching.
Does Defensia detect CVE-2024-35866?
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-35866 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/10e17ca4000ec34737bde002a13435c38ace2682
- https://git.kernel.org/stable/c/3103163ccd3be4adcfa37e15608fb497be044113
- https://git.kernel.org/stable/c/58acd1f497162e7d282077f816faa519487be045
- https://git.kernel.org/stable/c/d798fd98e3563027c5162259ead517057d6fa794
- https://git.kernel.org/stable/c/f4a60d360d9114b5085701a3702a0102b0d6d846
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-35866. Free for 1 server.
Get started free