CVE-2024-35864·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: smb: client: fix potential UAF in smb2_is_valid_lease_break() 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) vulnerability in SMB2 lease break handling. This flaw could allow a local attacker with standard user privileges to corrupt kernel memory or trigger a denial of service. Prioritize this patch for systems running kernels 6.7 through 6.8.4 that handle SMB/CIFS connections.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Run `uname -r` to display the currently running kernel version and verify it is below 6.8.5
- Step 2: Check if SMB/CIFS client kernel modules are loaded with `lsmod | grep cifs` or `lsmod | grep smb`
- Step 3: Search system logs for UAF-related kernel panics using `sudo journalctl -p err -n 200 | grep -i 'use.*after.*free\|uaf\|page.*fault'`
- Step 4: After applying the kernel update and rebooting, run `uname -r` again to confirm the version is 6.8.5 or higher
FAQ
What is CVE-2024-35864?
CVE-2024-35864 is a use-after-free vulnerability in the Linux kernel's SMB2 client implementation that occurs during lease break processing. An attacker with local access could exploit this flaw by manipulating session teardown operations, potentially leading to kernel memory corruption or system crash.
Is CVE-2024-35864 being actively exploited?
No, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog and has no publicly available proof-of-concept exploits at this time.
What versions of Kernel are affected by CVE-2024-35864?
Linux kernel versions 6.7 through 6.8.4 are vulnerable. The fix was integrated into version 6.8.5.
How do I check if my server is vulnerable to CVE-2024-35864?
Run `uname -r` and compare the output to kernel version 6.8.5. If your kernel version is between 6.7 and 6.8.4, your system is vulnerable.
Does Defensia detect CVE-2024-35864?
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-35864 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/705c76fbf726c7a2f6ff9143d4013b18daaaebf1
- https://git.kernel.org/stable/c/a8344e2b69bde63f713b0aa796d70dbeadffddfb
- https://git.kernel.org/stable/c/c868cabdf6fdd61bea54532271f4708254e57fc5
- https://git.kernel.org/stable/c/f92739fdd4522c4291277136399353d7c341fae4
- https://git.kernel.org/stable/c/705c76fbf726c7a2f6ff9143d4013b18daaaebf1
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-35864. Free for 1 server.
Get started free