Race Condition Vulnerability in rpmsg: char Package
Summary
GSD-2022-1000194: rpmsg: char: Fix race between the release of rpmsg_ctrldev and cdev. Affects Kernel versions >= c0cdc19f84a4712cf74888f83af286e3c2e14efd, < 1dbb206730f3e5ce90014ad569ddf8167ec4124a. 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 that provides support for remote processor messaging. It allows communication between processors in a heterogeneous system. The package includes a character device driver (cdev) that handles the communication between the local and remote processors. This vulnerability affects versions of the Linux Kernel from v4.11 to v5.10.96.
Vulnerability Detail
The vulnerability in rpmsg: char package arises from a race condition between the release of the rpmsg_ctrldev and cdev. This race condition can occur when multiple threads or processes attempt to access the rpmsg_ctrldev and cdev simultaneously. If the release of rpmsg_ctrldev happens before the release of cdev, it can lead to a use-after-free vulnerability. An attacker could potentially exploit this vulnerability to execute arbitrary code or cause a denial-of-service condition.
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 recommended to apply the fix mentioned above by updating the Linux Kernel.
Conclusion
The race condition vulnerability in the rpmsg: char package of the Linux Kernel can lead to a use-after-free vulnerability, potentially allowing an attacker to execute arbitrary code or cause a denial-of-service condition. It is crucial to update the Linux Kernel to the latest version to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The rpmsg: char package is a component of the Linux Kernel that provides support for remote processor messaging. It enables communication between processors in a heterogeneous system.
A race condition is a software vulnerability that occurs when the behavior of a program depends on the relative timing of events. In this case, the race condition arises when the release of rpmsg_ctrldev and cdev happens in an unexpected order.
A use-after-free vulnerability occurs when a program continues to use a memory region after it has been freed. In this case, the use-after-free vulnerability can be exploited by an attacker to execute arbitrary code or cause a denial-of-service condition.
You can use Vulert's playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Vulert uses a manifest file like package-lock.json to monitor and alert in real-time for open-source vulnerabilities.
For further support on vulnerability remediation, you can contact info@devnack.com. They can provide guidance and assistance in fixing the vulnerability.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.