NFS: Corruption of pg_bytes_written in nfs_do_recoalesce()

Kernel Updated 02 Oct 2025

Summary

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

GSD-2021-1000677: NFS: Don't corrupt the value of pg_bytes_written in nfs_do_recoalesce(). Affects Kernel versions >= a7d42ddb3099727f58366fa006f850a219cce6c8, < c757c1f1e65d89429db1409429436cf40d47c008. 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 critical component of the Linux operating system, responsible for managing the system's core functionality. It provides essential services such as process management, memory management, and device drivers. The NFS (Network File System) is a distributed file system protocol that allows remote file access over a network. It is commonly used in Linux environments to share files between systems. The vulnerability in question affects the NFS implementation in the Kernel package.

Vulnerability Detail

The vulnerability arises in the nfs_do_recoalesce() function of the NFS implementation. It leads to the corruption of the value of pg_bytes_written, a critical variable used to track the number of bytes written to the page cache. This corruption can result in incorrect accounting of written bytes, potentially leading to data integrity issues and other unexpected behavior. The vulnerability was introduced in version v4.0 of the Linux Kernel and has been fixed in version v4.14.235.

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 workaround, users can avoid the vulnerability by refraining from using the nfs_do_recoalesce() function or any functionality that relies on it. However, this may not be feasible in all scenarios, and it is strongly advised to apply the official fix by updating the Linux Kernel package.

Conclusion

The NFS vulnerability in the Linux Kernel package, which corrupts the value of pg_bytes_written in nfs_do_recoalesce(), can have significant implications for data integrity and system behavior. It is crucial to update the Linux Kernel package to version v4.14.235 or later to mitigate this vulnerability. For further assistance and support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can lead to the corruption of the pg_bytes_written variable in the NFS implementation, potentially causing data integrity issues and unexpected behavior.

You can use the Vulert Playground at Vulert 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 are found.

At the time of this report, no known exploits for this vulnerability have been disclosed. However, it is crucial to apply the fix promptly to mitigate any potential risks.

The vulnerability itself does not provide remote exploitation capabilities. However, if an attacker gains access to a system with the vulnerable NFS implementation, they may be able to leverage this vulnerability to manipulate the pg_bytes_written variable and potentially cause data integrity issues.

For more detailed information about this vulnerability, including the specific code changes that fix it, you can refer to the vulnerability report at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1000xxx/GSD-2021-1000677.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