Double Free Race Vulnerability in cifs Package
Summary
GSD-2022-1000879: cifs: fix double free race when mount fails in cifs_get_root(). Affects Kernel versions < e208668ef7ba23efcbf76a8200cab8deee501c4d. 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 cifs package is a component of the Linux Kernel ecosystem. It provides support for the Common Internet File System (CIFS), which allows Linux systems to access files and resources on remote Windows servers. The cifs_get_root() function is responsible for mounting CIFS shares and retrieving the root directory. However, a vulnerability exists in this function that can lead to a double free race condition when the mount operation fails.
Vulnerability Detail
The double free race vulnerability in cifs_get_root() occurs when there is a race condition during the handling of a failed mount operation. This can be exploited by an attacker to cause a use-after-free condition, potentially leading to arbitrary code execution or a system crash. The vulnerability was discovered in the Linux Kernel and has a CVSS score of X.X. It has been fixed in Linux Kernel version v5.4.183 by commit e208668ef7ba23efcbf76a8200cab8deee501c4d.
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. It is crucial to update the Linux Kernel to the fixed version as soon as possible.
Conclusion
The double free race vulnerability in the cifs package can be mitigated by updating the Linux Kernel to version v5.4.183 or later. It is crucial to apply this update to ensure the security and stability of the system. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The cifs package is a component of the Linux Kernel that provides support for the Common Internet File System (CIFS), allowing Linux systems to access files and resources on remote Windows servers.
The cifs_get_root() function is responsible for mounting CIFS shares and retrieving the root directory.
A double free race vulnerability occurs when there is a race condition during the handling of a failed operation, leading to a use-after-free condition.
This vulnerability can potentially be exploited by an attacker to execute arbitrary code or crash the system.
To fix this vulnerability, update the Linux Kernel to version v5.4.183 or later.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.