sunrpc: Avoid a KASAN slab-out-of-bounds bug in xdr_set_page_base()
Summary
GSD-2021-1001193: sunrpc: Avoid a KASAN slab-out-of-bounds bug in xdr_set_page_base(). Affects Kernel versions >= 8d86e373b0ef52d091ced9583ffbb33ad2771576, < a02357d7532b88e97329bd7786c7e72601109704. 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 sunrpc package is a part of the Linux Kernel ecosystem and is responsible for implementing the Sun Remote Procedure Call (RPC) protocol. RPC is a mechanism that allows programs running on different machines to communicate with each other by invoking procedures on remote systems. The xdr_set_page_base() function is a critical component of the sunrpc package and is used to set the base page for an XDR buffer. This function is vulnerable to a KASAN slab-out-of-bounds bug, which can potentially lead to security vulnerabilities.
Vulnerability Detail
The vulnerability in xdr_set_page_base() arises from a slab-out-of-bounds bug. This bug can be exploited by an attacker to corrupt memory and potentially execute arbitrary code with kernel privileges. The bug was introduced in version v5.11 of the Linux Kernel and was fixed in version v5.13.4. The impact and attack plausibility of this vulnerability have not been proven yet, but it is important to address it to ensure the security of 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 specific workaround mentioned for this vulnerability. The recommended approach is to update the Linux Kernel to the fixed version.
Conclusion
The sunrpc package in the Linux Kernel is vulnerable to a KASAN slab-out-of-bounds bug in the xdr_set_page_base() function. This vulnerability can potentially lead to memory corruption and arbitrary code execution with kernel privileges. It is crucial to update the Linux 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
The sunrpc package is a part of the Linux Kernel ecosystem and implements the Sun Remote Procedure Call (RPC) protocol. It allows programs running on different machines to communicate with each other by invoking procedures on remote systems.
The xdr_set_page_base() function is a critical component of the sunrpc package. It is used to set the base page for an XDR buffer.
A slab-out-of-bounds bug refers to a situation where a program or function accesses memory outside the allocated boundaries of a slab. This can lead to memory corruption and potential security vulnerabilities.
If successfully exploited, this vulnerability can allow an attacker to corrupt memory and potentially execute arbitrary code with kernel privileges. However, the impact and attack plausibility of this vulnerability have not been proven yet.
To protect your system from this vulnerability, it is recommended to update the Linux Kernel to version v5.13.4 or later. This update includes the necessary patch to address the slab-out-of-bounds bug in xdr_set_page_base().
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.