NFSv4: Fix an Oops in pnfs_mark_request_commit() when doing O_DIRECT
Summary
GSD-2021-1001192: NFSv4: Fix an Oops in pnfs_mark_request_commit() when doing O_DIRECT. Affects Kernel versions >= 9c455a8c1e146dac3a6d1405fe6a7096177b9546, < 7aec9f862411906f8c27071ba65a1e110ad7d2fd. 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 Kernel is an open-source software that serves as the core component of the Linux operating system. It provides essential functionalities, such as managing system resources, facilitating communication between hardware and software components, and enabling the execution of user programs. The NFSv4 (Network File System version 4) is a protocol within the Kernel that allows remote file access over a network. It provides a distributed file system that enables clients to access files on a server as if they were local. The pnfs_mark_request_commit() function is a part of NFSv4 that handles marking requests for commit when using the O_DIRECT flag. O_DIRECT is a flag that allows direct I/O operations without involving the page cache.
Vulnerability Detail
The vulnerability identified as GSD-2021-1001192 in the Kernel's NFSv4 component occurs in the pnfs_mark_request_commit() function when performing O_DIRECT operations. This vulnerability can lead to an Oops, which is a kernel panic or crash, potentially resulting in a denial of service (DoS) condition. The issue was introduced in version v5.7 of the Linux Kernel and has been fixed in version v5.13.4. The impact and attack plausibility of this vulnerability have not been proven.
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 specific workaround mentioned for this vulnerability.
Conclusion
The vulnerability in the NFSv4 component of the Linux Kernel, identified as GSD-2021-1001192, can lead to a denial of service (DoS) condition. It is recommended to update the Kernel to version v5.13.4 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
NFSv4 is a protocol within the Linux Kernel that enables remote file access over a network, providing a distributed file system.
O_DIRECT is a flag that allows direct I/O operations without involving the page cache.
pnfs_mark_request_commit() is a function in the NFSv4 component of the Linux Kernel that handles marking requests for commit when using the O_DIRECT flag.
An Oops refers to a kernel panic or crash, which can occur due to a software bug or vulnerability.
To fix this vulnerability, update the Linux Kernel to version v5.13.4 or later.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.