Race Condition in rpmsg: char Package
Summary
GSD-2022-1000125: rpmsg: char: Fix race between the release of rpmsg_ctrldev and cdev. Affects Kernel versions >= c0cdc19f84a4712cf74888f83af286e3c2e14efd, < 70cb4295ec806b663665e1d2ed15caab6159880e. 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 rpmsg: char package is a component of the Linux Kernel ecosystem. It provides support for remote processor messaging, allowing communication between different processors in a system. The package includes a character device driver (rpmsg_char) that facilitates the exchange of messages between processors. This vulnerability affects versions of the Linux Kernel from v4.11 to v4.19.228.
Vulnerability Detail
The vulnerability in rpmsg: char arises from a race condition between the release of the rpmsg_ctrldev and cdev objects. This race condition can lead to various issues, including use-after-free and double-free vulnerabilities. An attacker exploiting this vulnerability could potentially execute arbitrary code or cause a denial-of-service condition on the affected system. The vulnerability was introduced in version v4.11 of the Linux Kernel and has been fixed in version v4.19.228.
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
As a workaround, users can apply the patch manually to their Linux Kernel installation. The patch can be obtained from the Linux Kernel repository at the following URL: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/. Once the patch is obtained, it can be applied using standard patching techniques.
Conclusion
In conclusion, the race condition vulnerability in the rpmsg: char package of the Linux Kernel can lead to serious security risks, including arbitrary code execution and denial-of-service. It is crucial to update the Linux Kernel to version v4.19.228 or later to mitigate these risks. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can allow an attacker to execute arbitrary code or cause a denial-of-service condition on the affected system.
You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will provide real-time alerts for any open-source vulnerabilities, including this one.
Yes, a workaround is available. Users can manually apply the patch provided by the Linux Kernel repository to address the vulnerability.
At the time of this report, there are no known exploits for this vulnerability. However, it is important to apply the necessary updates and patches to mitigate the risk.
For more information about this vulnerability, you can refer to the vulnerability details in the GSD Database at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1000xxx/GSD-2022-1000125.json.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.