Use-after-free due to delegation race in nfsd

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1002600: nfsd: fix use-after-free due to delegation race. Affects Kernel versions < 148c816f10fd11df27ca6a9b3238cdd42fa72cd3. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The nfsd package is a component of the Linux Kernel that provides support for the Network File System (NFS) protocol. NFS allows remote file systems to be mounted and accessed over a network. The nfsd module is responsible for handling NFS server requests. It manages file operations, authentication, and other NFS-related tasks.

Vulnerability Detail

The use-after-free vulnerability in nfsd is caused by a race condition during delegation handling. Delegation is a feature in NFS that allows a client to cache file metadata and perform certain operations locally without contacting the server. However, due to a race condition, a client can release a delegation while it is still being used by another thread, leading to a use-after-free scenario. An attacker could potentially exploit this vulnerability to execute arbitrary code or cause a denial-of-service condition.

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 recommended to apply the fix by updating the Linux Kernel.

Conclusion

The use-after-free vulnerability in nfsd can be mitigated by updating the Linux Kernel to version v5.15.8 or later. It is recommended to apply the fix as soon as possible to ensure the security and stability of NFS server deployments. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

nfsd is a component of the Linux Kernel that provides support for the Network File System (NFS) protocol. It allows remote file systems to be mounted and accessed over a network.

A use-after-free vulnerability occurs when a program continues to use a memory object after it has been freed. This can lead to various security issues, including crashes, data corruption, and potential execution of arbitrary code.

Delegation is a feature in NFS that allows a client to cache file metadata and perform certain operations locally without contacting the server. It improves performance by reducing network round trips.

An attacker could exploit this vulnerability by triggering the race condition during delegation handling. By releasing a delegation while it is still being used by another thread, the attacker can cause a use-after-free scenario and potentially execute arbitrary code or cause a denial-of-service condition.

Yes, this vulnerability has been fixed in the Linux Kernel version v5.15.8 by commit 148c816f10fd11df27ca6a9b3238cdd42fa72cd3.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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