CVE-2024-35866: smb: client: fix potential UAF in cifs_dump_full_key()
In the Linux kernel, the following vulnerability has been resolved:
smb: client: fix potential UAF in cifsdumpfullkey()
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 cifsdumpfullkey()
The Linux kernel CVE team has assigned CVE-2024-35866 to this issue.
Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024051939-CVE-2024-35866-97e5@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.133-1Fixed in 6.12.22-1 - 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 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 5.15.182.1-1 - Compensating control
Apply the described fix: in the Linux SMB client code (cifs_dump_full_key()), skip CIFS/SMB sessions that are being torn down by checking for status == SES_EXITING, to avoid the potential UAF associated with CVE-2024-35866.
Event History
Frequently Asked Questions
What is the severity of CVE-2024-35866?
CVE-2024-35866 has a medium severity rating due to its potential for causing a use-after-free condition.
How do I fix CVE-2024-35866?
To fix CVE-2024-35866, update the kernel to version 6.6.26, 6.8.5, or 6.9 as appropriate for your system.
Which systems are affected by CVE-2024-35866?
CVE-2024-35866 affects versions of the Linux kernel prior to 6.6.26 and between 6.7 and 6.8.5, as well as specific release candidates of version 6.9.
What type of vulnerability is CVE-2024-35866?
CVE-2024-35866 is a use-after-free vulnerability in the SMB client of the Linux kernel.
Is there a patch available for CVE-2024-35866?
Yes, patches to address CVE-2024-35866 are included in the latest kernel updates for affected systems.