Race Condition in rpmsg: char
Summary
GSD-2022-1000620: rpmsg: char: Fix race between the release of rpmsg_ctrldev and cdev. Affects Kernel versions >= c0cdc19f84a4712cf74888f83af286e3c2e14efd, < d6cdc6ae542845d4d0ac8b6d99362bde7042a3c7. 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. 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 v5.16.4.
Vulnerability Detail
The vulnerability in rpmsg: char is a race condition that occurs during the release of the rpmsg_ctrldev and cdev objects. This race condition can lead to use-after-free or double-free vulnerabilities, potentially allowing an attacker to execute arbitrary code or cause a denial-of-service condition. The vulnerability was introduced in version v4.11 and has been fixed in version v5.16.5 of the Linux Kernel.
How To Fix
No fixed version is published for this vulnerability.
To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.16.5 or later. This update includes the necessary patch to address the race condition in rpmsg: char. Users can obtain the updated kernel from the official Linux Kernel repository.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, users can disable the rpmsg_char module by blacklisting it. This can be achieved by adding the following line to the /etc/modprobe.d/blacklist.conf file:
blacklist rpmsg_char
After adding the line, the system needs to be rebooted for the changes to take effect. However, it is strongly advised to apply the official fix by updating the Linux Kernel as soon as possible.
Conclusion
The race condition vulnerability in rpmsg: char can have serious security implications, potentially allowing an attacker to execute arbitrary code or cause a denial-of-service condition. It is crucial to update the Linux Kernel to version v5.16.5 or later 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.
A race condition is a software vulnerability that occurs when multiple threads or processes access shared resources concurrently, leading to unexpected behavior or security issues.
The race condition in rpmsg: char can result in use-after-free or double-free vulnerabilities, which may allow an attacker to execute arbitrary code or cause a denial-of-service condition.
To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.16.5 or later.
Yes, a temporary workaround is to disable the rpmsg_char module by blacklisting it.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.