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-1000501: misc: fastrpc: avoid double fput() on failed usercopy. Affects Kernel versions >= 6cffd79504ce040f460831030d3069fa1c99bb71, < 76f85c307ef9f10aa2cef1b1d5ee654c1f3345fc. 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 enables the functioning of various devices and services on Linux-based systems. The fastrpc module in the Linux Kernel is used for remote procedure calls (RPC) between different processes. RPC allows processes to communicate with each other over a network, enabling distributed computing. However, a vulnerability has been discovered in the fastrpc module that can lead to a double fput() on failed usercopy.

Vulnerability Detail

The vulnerability in the fastrpc module of the Linux Kernel arises from a double fput() call on a failed usercopy operation. Usercopy is a mechanism in the Linux Kernel that allows copying data between user space and kernel space. In this case, if the usercopy operation fails, the fastrpc module incorrectly calls fput() twice, leading to a reference count imbalance on the file object. This reference count imbalance can potentially be exploited by an attacker to trigger a use-after-free vulnerability or other memory corruption issues. The impact and attack plausibility of this vulnerability have not yet been proven.

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 fastrpc module in the Linux Kernel is vulnerable to a double fput() on failed usercopy, which can potentially lead to memory corruption and other security issues. It is crucial to update the Linux Kernel to version v5.16.10 or later to mitigate this vulnerability. Regularly updating the Linux Kernel is recommended to ensure the latest security patches are applied. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The fastrpc module in the Linux Kernel is used for remote procedure calls (RPC) between different processes. It enables processes to communicate with each other over a network, facilitating distributed computing.

fput() is a function in the Linux Kernel that decreases the reference count of a file object. A double fput() call refers to calling this function twice on the same file object, which can lead to a reference count imbalance and potential memory corruption.

Usercopy is a mechanism in the Linux Kernel that allows copying data between user space and kernel space. It is used to ensure the safety and integrity of data transfers between these two domains.

A use-after-free vulnerability occurs when a program continues to use a memory region after it has been freed. This can lead to memory corruption and potentially be exploited by an attacker to execute arbitrary code or crash the system.

To update your Linux Kernel, you can follow the instructions provided by your Linux distribution or refer to the official documentation for your specific distribution. Typically, it involves using package management tools like apt, yum, or dnf to install the latest kernel updates.

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