Double fput() on failed usercopy in Linux Kernel

Kernel Updated 02 Oct 2025

Summary

27/02/2022
N/A
No i
Unrated
Not published

GSD-2022-1000337: misc: fastrpc: avoid double fput() on failed usercopy. Affects Kernel versions >= 6cffd79504ce040f460831030d3069fa1c99bb71, < 4e6fd2b5fcf8e7119305a6042bd92e7f2b9ed215. 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 Linux Kernel is the core component of the Linux operating system, responsible for managing system resources and providing an interface for applications to interact with the hardware. It is a critical piece of software that is constantly being developed and maintained by a large community of contributors. The fastrpc module in the Linux Kernel is used for fast remote procedure calls between different processes. It allows processes to communicate efficiently by passing data structures and function calls between them.

Vulnerability Detail

The vulnerability identified as GSD-2022-1000337 in the fastrpc module of the Linux Kernel involves a double fput() on a failed usercopy operation. This vulnerability can potentially be exploited by an attacker to cause a denial of service or escalate privileges. When a usercopy operation fails, the code attempts to clean up resources by calling fput() twice on the same file structure, leading to a use-after-free vulnerability. An attacker could potentially trigger this vulnerability by crafting a malicious request that triggers a failed usercopy operation, leading to the execution of arbitrary code or a system crash.

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 specific workaround mentioned for this vulnerability.

Conclusion

The double fput() on failed usercopy vulnerability in the fastrpc module of the Linux Kernel can potentially lead to a denial of service or privilege escalation. It is crucial to update the Linux Kernel to the fixed version to mitigate this vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability can range from a denial of service to privilege escalation. An attacker could potentially exploit this vulnerability to execute arbitrary code or crash the system.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and Vulert will analyze it for any open-source vulnerabilities, including this one.

At the time of this report, there is no known exploit for this vulnerability. However, it is important to apply the recommended fix as soon as possible to mitigate any potential risks.

The recommended solution is to update the Linux Kernel to the fixed version. However, if updating is not feasible, you can consider implementing additional security measures such as restricting access to the affected module or implementing intrusion detection systems to monitor for any potential exploitation attempts.

This vulnerability was discovered by the Cloud Security Alliance (CSA) and reported through their GSD database. The CSA is a non-profit organization dedicated to promoting best practices for secure cloud computing.

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