Vulnerability in Kernel: Fix count check in rproc_coredump_write()

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1002143: remoteproc: Fix count check in rproc_coredump_write(). Affects Kernel versions >= 3afdc59e4390487f04f2435b7e8a6289984e0a1e, < b97b305656a7013690e7b6e310f0e827e0bbff90. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback