CVE-2024-35868
📋 TL;DR
This CVE describes a use-after-free vulnerability in the Linux kernel's SMB client implementation. An attacker could potentially exploit this to crash the kernel or execute arbitrary code. Systems running vulnerable Linux kernel versions with SMB client functionality are affected.
💻 Affected Systems
- Linux kernel
📦 What is this software?
Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →⚠️ Risk & Real-World Impact
Worst Case
Kernel panic leading to system crash or potential arbitrary code execution with kernel privileges, resulting in complete system compromise.
Likely Case
Kernel crash leading to denial of service and system instability.
If Mitigated
Limited impact if proper access controls prevent unauthorized users from writing to /proc/fs/cifs/Stats.
🎯 Exploit Status
Exploitation requires local access and ability to write to specific procfs entry during session teardown.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Kernel versions containing commits: 5b5475ce69f02ecc1b13ea23106e5b89c690429b, 8fefd166fcb368c5fcf48238e3f7c8af829e0a72, cf03020c56d3ed28c4942280957a007b5e9544f7, d3da25c5ac84430f89875ca7485a3828150a7e0a
Vendor Advisory: https://git.kernel.org/stable/c/5b5475ce69f02ecc1b13ea23106e5b89c690429b
Restart Required: Yes
Instructions:
1. Update Linux kernel to patched version. 2. Check distribution-specific security advisories. 3. Reboot system after kernel update.
🔧 Temporary Workarounds
Restrict procfs access
linuxLimit access to /proc/fs/cifs/Stats to prevent unauthorized writes
chmod 600 /proc/fs/cifs/Stats
chown root:root /proc/fs/cifs/Stats
Disable SMB client if not needed
linuxRemove or disable SMB client functionality
modprobe -r cifs
echo 'blacklist cifs' >> /etc/modprobe.d/blacklist.conf
🧯 If You Can't Patch
- Implement strict access controls to limit who can write to /proc/fs/cifs/Stats
- Monitor system logs for kernel crashes or suspicious activity related to SMB sessions
🔍 How to Verify
Check if Vulnerable:
Check kernel version and verify if it contains the vulnerable code by examining kernel source or distribution security advisories.
Check Version:
uname -r
Verify Fix Applied:
Verify kernel version includes the fix commits or check with 'uname -r' and compare against patched versions from your distribution.
📡 Detection & Monitoring
Log Indicators:
- Kernel panic messages
- Oops messages in dmesg
- Unexpected system crashes
Network Indicators:
- Unusual SMB client activity patterns
SIEM Query:
source="kernel" AND ("Oops" OR "panic" OR "BUG") AND "cifs"
🔗 References
- https://git.kernel.org/stable/c/5b5475ce69f02ecc1b13ea23106e5b89c690429b
- https://git.kernel.org/stable/c/8fefd166fcb368c5fcf48238e3f7c8af829e0a72
- https://git.kernel.org/stable/c/cf03020c56d3ed28c4942280957a007b5e9544f7
- https://git.kernel.org/stable/c/d3da25c5ac84430f89875ca7485a3828150a7e0a
- https://git.kernel.org/stable/c/5b5475ce69f02ecc1b13ea23106e5b89c690429b
- https://git.kernel.org/stable/c/8fefd166fcb368c5fcf48238e3f7c8af829e0a72
- https://git.kernel.org/stable/c/cf03020c56d3ed28c4942280957a007b5e9544f7
- https://git.kernel.org/stable/c/d3da25c5ac84430f89875ca7485a3828150a7e0a