NFSD: Fix READDIR buffer overflow in Kernel

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1002818: NFSD: Fix READDIR buffer overflow. Affects Kernel versions >= f5dcccd647da513a89f3b6ca392b0c1eb050b9fc, < eabc0aab98e5218ceecd82069b0d6fdfff5ee885. 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 Kernel is a critical component of the Linux operating system that provides core functionality and interfaces with hardware devices. It manages system resources, facilitates communication between software and hardware, and supports various file systems. The Network File System (NFS) is a distributed file system protocol that allows remote access to files over a network. The NFS server daemon (NFSD) is responsible for handling NFS requests on the server side. This vulnerability affects the NFSD component of the Kernel.

Vulnerability Detail

The vulnerability in NFSD is a buffer overflow issue that occurs during the READDIR operation. When processing a READDIR request, NFSD fails to properly validate the size of the buffer used to store directory entries. As a result, an attacker can craft a malicious READDIR request that overflows the buffer, potentially leading to arbitrary code execution or a denial-of-service condition. This vulnerability was introduced in version v5.13 of the Linux Kernel and has been fixed in version v5.15.12.

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 temporary workaround, users can disable the NFSD component if it is not required for their system. This can be done by stopping the NFSD service and preventing it from starting automatically on system boot. However, disabling NFSD may impact the functionality of NFS services on the affected system.

Conclusion

The NFSD READDIR buffer overflow vulnerability in the Linux Kernel can be mitigated by updating to version v5.15.12 or later. Users can also consider disabling the NFSD component 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

NFSD is the Network File System (NFS) server daemon in the Linux Kernel. It handles NFS requests on the server side, allowing remote access to files over a network.

A buffer overflow is a vulnerability that occurs when a program writes data beyond the boundaries of a fixed-size buffer. This can lead to memory corruption and potentially allow an attacker to execute arbitrary code or crash the program.

This vulnerability in NFSD can potentially allow an attacker to execute arbitrary code or cause a denial-of-service condition on the affected system.

You can use tools like Vulert (https://vulert.com) to check if your system is affected by this vulnerability. Vulert uses a manifest file like package-lock.json to monitor and alert in real-time for open-source vulnerabilities in the software.

Yes, as a temporary workaround, you can disable the NFSD component if it is not required for your system. However, this may impact the functionality of NFS services on the affected 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