NFS: Potential NULL Dereference in nfs_get_client() in Linux Kernel

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1000834: NFS: Fix a potential NULL dereference in nfs_get_client(). Affects Kernel versions >= 31434f496abb9f3410b10f541462fe58613dd3ad, < fab8bfdfb4aac9e4e8363666333adfdf21e89106. 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 a widely used open-source operating system kernel that serves as the foundation for various Linux distributions. It provides essential functionality for the operating system, including device drivers, process management, memory management, and file system support. The NFS (Network File System) is a protocol that allows remote file access over a network. The nfs_get_client() function in the Linux Kernel is responsible for retrieving the NFS client data structure associated with a given NFS client ID. However, a potential NULL dereference vulnerability has been identified in this function.

Vulnerability Detail

The vulnerability arises from a potential NULL dereference in the nfs_get_client() function of the Linux Kernel. If a NULL pointer is passed as an argument to this function, it may lead to a system crash or other unpredictable behavior. An attacker could potentially exploit this vulnerability to cause a denial-of-service (DoS) attack or execute arbitrary code with kernel-level privileges. The impact and attack plausibility of this vulnerability have not been proven yet.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v4.4.273 or later. The fix for this issue was implemented in commit fab8bfdfb4aac9e4e8363666333adfdf21e89106. Updating the kernel ensures that the NULL dereference vulnerability in the nfs_get_client() function is addressed.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If updating the Linux Kernel is not immediately feasible, a possible workaround is to avoid passing a NULL pointer as an argument to the nfs_get_client() function. This can be achieved by performing proper input validation and error handling in the code that calls the function. Here is an example of how to check for a NULL pointer before calling the function:

struct nfs_client *client;

if (client_id != NULL) {
    client = nfs_get_client(client_id);
    // Rest of the code
}

By explicitly checking for a NULL pointer, the potential NULL dereference can be avoided.

Conclusion

In conclusion, a potential NULL dereference vulnerability has been discovered in the nfs_get_client() function of the Linux Kernel. This vulnerability can be mitigated by updating the kernel to version v4.4.273 or later. If immediate updating is not possible, proper input validation and error handling can serve as a temporary workaround. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The Linux Kernel is an open-source operating system kernel that provides essential functionality for various Linux distributions.

NFS (Network File System) is a protocol that allows remote file access over a network.

The nfs_get_client() function is responsible for retrieving the NFS client data structure associated with a given NFS client ID in the Linux Kernel.

A NULL dereference vulnerability occurs when a program attempts to access or manipulate data using a NULL pointer, leading to a crash or other unpredictable behavior.

The potential consequences of this vulnerability include system crashes, denial-of-service (DoS) attacks, and the execution of arbitrary code with kernel-level privileges.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v4.4.273 or later. The fix for this issue was implemented in commit fab8bfdfb4aac9e4e8363666333adfdf21e89106. Updating the kernel ensures that the NULL dereference vulnerability in the nfs_get_client() function is addressed.

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

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.