CVE-2024-35869·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: smb: client: guarantee refcounted children from parent session Avoid potential use-after-free bugs when walking DFS referrals, mounting and performing DFS failover by ensuring that all children from parent @tcon->ses are also refcounted. They're all needed across the entire DFS mount. Get rid of @tcon->dfs_ses_list while we're at it, too.
- 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 vulnerability in SMB client DFS referral handling. This vulnerability affects systems running kernel versions 6.7 through 6.8.4, particularly those using SMB/CIFS mounts with DFS failover capabilities. Apply the kernel update immediately and reboot your system to activate the patched code.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with `uname -r` and verify it is not in the vulnerable range 6.7.x through 6.8.4
- Step 2: Confirm SMB/CIFS client functionality is enabled with `grep -i smb /boot/config-$(uname -r) | grep -E '(CONFIG_CIFS|CONFIG_SMB_SERVER)'`
- Step 3: Review kernel logs for DFS-related errors using `dmesg | grep -i dfs` or `journalctl -k | grep -i dfs` to identify any DFS referral processing issues
- Step 4: After patching, confirm the new kernel version is active with `uname -r` and verify SMB mounts function correctly with `mount | grep cifs` and test mount operations
FAQ
What is CVE-2024-35869?
CVE-2024-35869 is a use-after-free vulnerability in the Linux kernel's SMB client implementation that affects DFS (Distributed File System) referral processing. The flaw occurs when child session objects lack proper reference counting during DFS mount operations and failovers, potentially allowing memory corruption.
Is CVE-2024-35869 being actively exploited?
No, CVE-2024-35869 is not listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are currently available. However, the high CVSS score (8.4) warrants prompt patching.
What versions of Kernel are affected by CVE-2024-35869?
Linux kernel versions 6.7.0 through 6.8.4 are vulnerable. Kernel 6.8.5 and later contain the fix.
How do I check if my server is vulnerable to CVE-2024-35869?
Run `uname -r` to see your kernel version. If the output shows a version between 6.7 and 6.8.4, your system is vulnerable. Cross-reference with `dpkg -l | grep linux-image` (Debian/Ubuntu) or `dnf list installed | grep kernel` (RHEL/CentOS) to confirm the exact installed package.
Does Defensia detect CVE-2024-35869?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-35869 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/062a7f0ff46eb57aff526897bd2bebfdb1d3046a
- https://git.kernel.org/stable/c/645f332c6b63499cc76197f9b6bffcc659ba64cc
- https://git.kernel.org/stable/c/e1db9ae87b7148c021daee1fcc4bc71b2ac58a79
- https://git.kernel.org/stable/c/062a7f0ff46eb57aff526897bd2bebfdb1d3046a
- https://git.kernel.org/stable/c/645f332c6b63499cc76197f9b6bffcc659ba64cc
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-35869. Free for 1 server.
Get started free