CVE-2024-35870: Linux kernel smb client UAF vulnerability in smb2_reconnect_server()
Summary
CVE-2024-35870: In the Linux kernel, the following vulnerability has been resolved: smb: client: fix UAF in smb2_reconnect_server() The UAF bug is due to smb2_reconnect_server() accessing a session that is already being teared down by a... Affects linux versions 5.10.103-1 – 6.9.9-1. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The linux-libc-dev package is a development package that provides the C library headers for the Linux kernel. It is used to compile and build applications that interact with the kernel. This package is an essential component for developers working on Linux-based systems. The linux-libc-dev package is vulnerable to a use-after-free (UAF) vulnerability in the smb2_reconnect_server() function of the kernel's smb client. This vulnerability can be exploited by an attacker to execute arbitrary code or cause a denial of service.
Vulnerability Detail
The UAF vulnerability in smb2_reconnect_server() occurs when the function accesses a session that is being torn down by another thread executing __cifs_put_smb_ses(). This can happen when the client has a connection to the server but no session, or when another thread sets the session status to something different than SES_EXITING. To fix this vulnerability, the ses_status variable needs to be unconditionally set to SES_EXITING and prevent other threads from setting a new status while the session is being torn down. Exploiting this vulnerability can lead to a general protection fault and potential code execution.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no known workaround for this vulnerability at the moment.
Conclusion
The linux-libc-dev package is vulnerable to a use-after-free vulnerability in the smb2_reconnect_server() function of the kernel's smb client. This vulnerability can be exploited to execute arbitrary code or cause a denial of service. It is recommended to update the linux-libc-dev package to version 6.1.90-1 or later to fix this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for linux →
FAQ
This vulnerability can be exploited by an attacker to execute arbitrary code or cause a denial of service.
No, there is currently no known workaround for this vulnerability.
You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package manifest file (e.g., package-lock.json) and Vulert will provide real-time alerts for open-source vulnerabilities.
The CVSS score of this vulnerability is 5.5, indicating a medium severity.
You can find more information about this vulnerability on the NIST National Vulnerability Database (NVD) at https://nvd.nist.gov/vuln/detail/CVE-2024-35870.
Related vulnerabilities
Recent vulnerabilities recorded for linux.