sunrpc: Avoid a KASAN slab-out-of-bounds bug in xdr_set_page_base()

Kernel Updated 02 Oct 2025

Summary

03/08/2021
N/A
No i
Unrated
Not published

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 ↓

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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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