NFS: Use-after-free vulnerability in nfs4_init_client()

Kernel Updated 02 Oct 2025

Summary

30/06/2021
N/A
No i
Unrated
Not published

GSD-2021-1000883: NFS: Fix use-after-free in nfs4_init_client(). Affects Kernel versions >= 8dcbec6d20eb881ba368d0aebc3a8a678aebb1da, < 42c10b0db064e45f5c5ae7019bbf2168ffab766c. 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 Penetration testing for web, API and mobile 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 package is a crucial component of the Linux operating system. It provides the core functionality and interfaces for the system's hardware and software components. NFS (Network File System) is a distributed file system protocol that allows remote file access over a network. The nfs4_init_client() function is responsible for initializing an NFSv4 client structure. This vulnerability in nfs4_init_client() can lead to a use-after-free condition, where a program continues to reference memory after it has been freed. This can result in various security issues, including potential remote code execution or denial of service attacks.

Vulnerability Detail

The use-after-free vulnerability in nfs4_init_client() arises due to improper handling of memory deallocation. When certain conditions are met, a client structure can be freed while still being referenced by other parts of the code. This can lead to memory corruption and potentially allow an attacker to execute arbitrary code or crash the system. The vulnerability was introduced in Linux Kernel version 4.13 and has been fixed in version 4.19.195.

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 known workaround for this vulnerability. It is essential to update the Kernel to the fixed version to mitigate the risk.

Conclusion

The use-after-free vulnerability in nfs4_init_client() poses a significant risk to the security and availability of systems running the affected versions of the Linux Kernel. It is crucial to update the Kernel to version 4.19.195 or later to mitigate this vulnerability. For further support and assistance in vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The use-after-free vulnerability in nfs4_init_client() can potentially allow an attacker to execute arbitrary code or crash the system, leading to a compromise of the affected system's security and availability.

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 in real-time to identify any open-source vulnerabilities, including this one.

At the time of this report, there are no known public exploits targeting this specific vulnerability. However, it is crucial to apply the fix promptly to prevent any potential exploitation.

Yes, this vulnerability can be exploited remotely. An attacker can potentially craft malicious network requests to trigger the use-after-free condition and execute arbitrary code or crash the system.

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