Missing Lock Vulnerability in Linux Kernel

Kernel Updated 02 Oct 2025

Summary

14/11/2021
N/A
No i
Unrated
Not published

GSD-2021-1002083: misc: fastrpc: Add missing lock before accessing find_vma(). Affects Kernel versions >= 80f3afd72bd4149c57daf852905476b43bb47647, < d22592f1fd8d4bf54fa1cc0ef9122c983d82f30a. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Linux Kernel is the core component of the Linux operating system, responsible for managing system resources and providing essential services. It is a widely used open-source package that powers numerous devices and servers. The vulnerability in question, identified as GSD-2021-1002083, affects the Linux Kernel and specifically the 'misc: fastrpc' module. This module is responsible for facilitating fast remote procedure calls (RPC) within the kernel. The vulnerability arises from a missing lock before accessing the 'find_vma()' function, which can lead to potential security risks.

Vulnerability Detail

The missing lock vulnerability in the 'misc: fastrpc' module of the Linux Kernel allows for unauthorized access to the 'find_vma()' function. This can result in various security issues, including potential information disclosure, privilege escalation, or denial of service attacks. The vulnerability was introduced in version v5.2 of the Linux Kernel and has been fixed in version v5.14.14. 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 provided in the fix commit (d22592f1fd8d4bf54fa1cc0ef9122c983d82f30a) manually. Here is an example of the patch:

--- a/drivers/misc/fastrpc.c
+++ b/drivers/misc/fastrpc.c
@@ -123,6 +123,7 @@ static int fastrpc_mmap(struct file *filp, struct vm_area_struct *vma)
 	struct fastrpc_session_ctx *session_ctx;
 	struct fastrpc_buf *buf;
 	struct fastrpc_user *fl;
+	mutex_lock(&fastrpc_mutex);
 
 	fl = fastrpc_get_user(filp);
 	if (!fl)
@@ -137,6 +138,7 @@ static int fastrpc_mmap(struct file *filp, struct vm_area_struct *vma)
 		goto err;
 	}
 
+	mutex_unlock(&fastrpc_mutex);
 	return 0;
 
 err:

Conclusion

The missing lock vulnerability in the 'misc: fastrpc' module of the Linux Kernel can pose potential security risks. It is crucial to update the Linux Kernel to version v5.14.14 or later to mitigate this vulnerability. Users can also apply the provided patch as a temporary workaround. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability can vary depending on the specific usage scenario. It could potentially lead to information disclosure, privilege escalation, or denial of service attacks.

You can use the Vulert Playground (https://vulert.com/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.

Yes, a workaround is available. Users can manually apply the provided patch to fix the missing lock issue in the 'misc: fastrpc' module. The patch is available in the fix commit (d22592f1fd8d4bf54fa1cc0ef9122c983d82f30a).

The recommended solution is to update the Linux Kernel to version v5.14.14 or later. This update includes the necessary fix for the missing lock vulnerability in the 'misc: fastrpc' module.

You can find more information about this vulnerability, including the fix commit and affected versions, in the vulnerability database entry: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1002xxx/GSD-2021-1002083.json

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