NFS: Potential NULL Dereference in nfs_get_client()

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1001043: NFS: Fix a potential NULL dereference in nfs_get_client(). Affects Kernel versions >= 31434f496abb9f3410b10f541462fe58613dd3ad, < 58ddf61f10b8f9b7b1341644bfee2f1c6508d4e1. 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 Kernel package is a fundamental component of the Linux operating system, responsible for managing system resources and providing an interface between hardware and software. It includes various subsystems, such as the Network File System (NFS), which allows remote file access over a network. NFS enables clients to mount remote directories and access files as if they were local. The nfs_get_client() function is a crucial part of the NFS subsystem, responsible for retrieving the NFS client structure associated with a given file system. However, a potential vulnerability exists within this function that could lead to a NULL dereference.

Vulnerability Detail

The vulnerability arises from a potential NULL dereference in the nfs_get_client() function. If a NULL pointer is passed as an argument to this function, it may result in a system crash or other unexpected behavior. An attacker could potentially exploit this vulnerability by providing a malicious input that triggers the NULL dereference, leading to a denial-of-service (DoS) attack or the execution of arbitrary code with elevated privileges. This vulnerability was introduced in version v3.17 of the Linux Kernel and has been fixed in version v5.12.11.

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

In conclusion, the NFS vulnerability in the nfs_get_client() function could lead to a NULL dereference, potentially resulting in a system crash or the execution of arbitrary code. It is crucial to update the Linux Kernel to version v5.12.11 or later to mitigate this vulnerability. For further support and assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability could potentially lead to a system crash or other unexpected behavior, allowing an attacker to launch a denial-of-service (DoS) attack or execute arbitrary code with elevated privileges.

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 to the playground, and it will analyze the dependencies and alert you if any vulnerabilities, including this one, are found.

At the time of this report, there is no known public exploit for this vulnerability. However, it is crucial to apply the recommended fix to prevent any potential exploitation.

The recommended approach is to update the Kernel to the fixed version. However, if updating is not immediately feasible, it is essential to ensure other security measures are in place, such as network segmentation, access controls, and monitoring for any suspicious activity.

You can find more information about this vulnerability, including the specific commits that introduced and fixed it, in the vulnerability database maintained by the Cloud Security Alliance: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1001xxx/GSD-2021-1001043.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