Vulnerability in Kernel: Fix count check in rproc_coredump_write()
Summary
GSD-2022-1002143: remoteproc: Fix count check in rproc_coredump_write(). Affects Kernel versions >= 3afdc59e4390487f04f2435b7e8a6289984e0a1e, < b97b305656a7013690e7b6e310f0e827e0bbff90. 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 Kernel is a crucial component of the Linux operating system that acts as a bridge between the hardware and software layers. It provides essential functionalities such as device drivers, memory management, and process scheduling. The vulnerability in question affects the Kernel's remoteproc module, which is responsible for managing remote processors. This module allows firmware to be loaded and executed on remote processors, enabling distributed computing. However, a flaw in the rproc_coredump_write() function can lead to a security vulnerability.
Vulnerability Detail
The vulnerability arises from an incorrect count check in the rproc_coredump_write() function of the remoteproc module. This flaw could potentially be exploited by an attacker to perform arbitrary code execution or trigger a denial-of-service condition. The vulnerability was introduced in version v5.9 of the Linux Kernel and was fixed in version v5.10.110. The impact and attack plausibility of this vulnerability have not been proven yet.
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 Kernel version. Here is an example of the patch:
--- a/drivers/remoteproc/remoteproc_core.c
+++ b/drivers/remoteproc/remoteproc_core.c
@@ -1234,7 +1234,7 @@ static ssize_t rproc_coredump_write(struct file *file, const char __user *buf,
return -ENOMEM;
count = min_t(size_t, count, PAGE_SIZE);
- if (!count)
+ if (count <= 0)
return -EINVAL;
ret = copy_from_user(kbuf, buf, count);
Conclusion
In conclusion, the vulnerability in the Kernel's remoteproc module can be mitigated by updating the Linux Kernel to version v5.10.110 or later. This update includes a fix for the count check issue in the rproc_coredump_write() function. For further assistance or support in addressing this vulnerability, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The Kernel is a fundamental component of the Linux operating system that acts as a bridge between the hardware and software layers. It provides essential functionalities such as device drivers, memory management, and process scheduling.
The remoteproc module is a part of the Kernel that manages remote processors. It allows firmware to be loaded and executed on remote processors, enabling distributed computing.
The impact of this vulnerability could range from arbitrary code execution to a denial-of-service condition. However, the actual impact and attack plausibility have not been proven yet.
To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.10.110 or later. This update includes the necessary patch to address the count check issue in the rproc_coredump_write() function.
Yes, users can apply the patch manually to their Kernel version as a workaround. The patch can be found in the 'workaround' section of this report.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.