Race Condition Vulnerability in rpmsg: char
Summary
GSD-2022-1000100: rpmsg: char: Fix race between the release of rpmsg_ctrldev and cdev. Affects Kernel versions >= c0cdc19f84a4712cf74888f83af286e3c2e14efd, < 74d85e9fbc7022a4011102c7474a9c7aeb704a35. 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 (RPMsg) communication between different processors in a system. RPMsg is commonly used in embedded systems to enable inter-processor communication. This vulnerability affects versions of the Linux Kernel starting from v4.11 and was fixed in v4.14.265. The vulnerability arises due to a race condition between the release of rpmsg_ctrldev and cdev.
Vulnerability Detail
The race condition vulnerability in rpmsg: char can be exploited by an attacker to cause a denial-of-service (DoS) condition or potentially execute arbitrary code. The vulnerability occurs when there is a race condition between the release of rpmsg_ctrldev and cdev. This can lead to use-after-free or double-free vulnerabilities, allowing an attacker to manipulate memory and potentially execute arbitrary code. Successful exploitation of this vulnerability could result in system crashes, privilege escalation, or unauthorized access to sensitive information.
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 temporary workaround, developers can disable the rpmsg: char functionality if it is not required in their system. This can be achieved by removing or disabling the corresponding kernel module. However, this workaround may impact the functionality of other components dependent on rpmsg: char.
Conclusion
The race condition vulnerability in rpmsg: char can have severe consequences, including system crashes, unauthorized access, and arbitrary code execution. It is crucial to update the Linux Kernel to the fixed version to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
rpmsg: char is a component of the Linux Kernel that provides support for remote processor messaging (RPMsg) communication between different processors in a system.
A race condition vulnerability occurs when the behavior of a program depends on the relative timing of events, which can lead to unexpected and potentially insecure outcomes.
This vulnerability can result in denial-of-service (DoS) conditions, arbitrary code execution, system crashes, privilege escalation, or unauthorized access to sensitive information.
To fix this vulnerability, update the Linux Kernel to version v4.14.265 or later by obtaining the updated kernel source code from the official Linux Kernel repository.
As a temporary workaround, you can disable the rpmsg: char functionality if it is not required in your system by removing or disabling the corresponding kernel module.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.