NFS: Use-after-free vulnerability in nfs4_init_client()
Summary
GSD-2021-1000865: NFS: Fix use-after-free in nfs4_init_client(). Affects Kernel versions >= 8dcbec6d20eb881ba368d0aebc3a8a678aebb1da, < c7eab9e2d7b4e983ce280276fb920af649955897. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The NFS (Network File System) package is a distributed file system protocol that allows clients to access files over a network. It is commonly used in Linux systems to share files between servers and clients. The nfs4_init_client() function is responsible for initializing an NFSv4 client structure. This vulnerability affects the Linux Kernel package.
Vulnerability Detail
The use-after-free vulnerability in nfs4_init_client() allows an attacker to exploit a freed memory region, leading to potential code execution or a system crash. This vulnerability was introduced in version v4.13 of the Linux Kernel and was fixed in version v4.14.237. An attacker could potentially craft a malicious NFS request to trigger the use-after-free condition and execute arbitrary code or crash the system.
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 as soon as possible.
Conclusion
The use-after-free vulnerability in nfs4_init_client() can be exploited by an attacker to execute arbitrary code or crash the system. It is crucial to update the Linux Kernel package to version v4.14.237 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
NFS (Network File System) is a distributed file system protocol that allows clients to access files over a network. It is commonly used in Linux systems for file sharing between servers and clients.
A use-after-free vulnerability occurs when a program continues to use a memory region after it has been freed. This can lead to memory corruption, code execution, or system crashes.
An attacker can exploit this vulnerability by crafting a malicious NFS request that triggers the use-after-free condition in the nfs4_init_client() function. This can lead to arbitrary code execution or system crashes.
This vulnerability affects versions of the Linux Kernel starting from v4.13 up to v4.14.236. The issue was fixed in version v4.14.237.
No, there is no known workaround for this vulnerability. It is recommended to update the Linux Kernel package to the fixed version.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.