CVE-2024-35868: smb: client: fix potential UAF in cifs_stats_proc_write()
In the Linux kernel, the following vulnerability has been resolved:
smb: client: fix potential UAF in cifsstatsprocwrite()
Skip sessions that are being teared down (status == SESEXITING) to avoid UAF.
Other sources
In the Linux kernel, the following vulnerability has been resolved:
smb: client: fix potential UAF in cifsstatsprocwrite()
The Linux kernel CVE team has assigned CVE-2024-35868 to this issue.
Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024051940-CVE-2024-35868-be7a@gregkh/T
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.22-1Fixed in 6.12.25-1 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.1.85 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.6.26 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.8.5 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 6.9 - Compensating control
Skip SMB client sessions that are being torn down (session status == SES_EXITING) in cifs_stats_proc_write() to avoid a potential UAF (CVE-2024-35868).
Event History
Frequently Asked Questions
What is the severity of CVE-2024-35868?
CVE-2024-35868 has been classified with a medium severity level due to its potential to cause use-after-free vulnerabilities.
How do I fix CVE-2024-35868?
To mitigate CVE-2024-35868, update your Linux kernel to a version that includes the fix, specifically versions 6.1.123-1, 6.1.119-1, 6.12.9-1, or 6.12.10-1.
Which Linux kernel versions are affected by CVE-2024-35868?
CVE-2024-35868 affects Linux kernel versions 5.10 to 6.1.85 and versions 6.2 through 6.6.26.
What components are involved in CVE-2024-35868?
CVE-2024-35868 involves the SMB client in the Linux kernel, specifically related to cifs_stats_proc_write().
Is there a workaround for CVE-2024-35868?
Currently, the best course of action for CVE-2024-35868 is to apply the recommended kernel updates, as no specific workaround is available.