SUNRPC: Ensure we flush any closed sockets before xs_xprt_free() - Kernel

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1001340: SUNRPC: Ensure we flush any closed sockets before xs_xprt_free(). Affects Kernel versions >= a73881c96d73ee72b7dbbd38a6eeef66182a8ef7, < 7a0921a23cae42e9fa5ce964f6907181b6dc80d8. 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 Kernel is a crucial component of the Linux operating system that provides core functionalities and acts as an interface between hardware and software. It manages system resources, facilitates communication between different software components, and ensures the overall stability and security of the system. The vulnerability in focus affects the Kernel's SUNRPC (Simple Universal Network Protocol Remote Procedure Call) module. SUNRPC is responsible for enabling remote procedure calls over a network, allowing processes on different systems to communicate with each other.

Vulnerability Detail

The vulnerability identified in the SUNRPC module of the Kernel involves the failure to flush closed sockets before freeing the xs_xprt structure. This oversight can lead to resource leaks and potential security issues. Attackers may exploit this vulnerability to exhaust system resources, cause denial-of-service conditions, or potentially execute arbitrary code. The vulnerability was introduced in version v5.1 of the Linux Kernel and has been fixed in version v5.16.20.

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 apply a patch or backport the fix to their current Kernel version. The patch can be obtained from the official Linux Kernel repository or other trusted sources. It is important to carefully follow the instructions provided with the patch to ensure proper implementation.

Conclusion

The vulnerability in the SUNRPC module of the Linux Kernel can lead to resource leaks, denial-of-service conditions, or arbitrary code execution. It is crucial to update the Kernel to version v5.16.20 or later to mitigate these risks. Users can also apply patches or backport the fix as a temporary workaround. For more information and assistance, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can potentially lead to resource leaks, denial-of-service conditions, or arbitrary code execution. It is crucial to address this vulnerability promptly to mitigate these risks.

You can use tools like Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Vulert Playground allows you to analyze your application's manifest file, such as package-lock.json, without requiring code access or installation.

At the time of this report, there are no known public exploits for this vulnerability. However, it is essential to apply the recommended fixes or workarounds to prevent potential exploitation.

While updating the Kernel to the fixed version is the recommended approach, users can apply patches or backport the fix to their current Kernel version as a temporary mitigation measure. However, it is advisable to update to the latest stable release as soon as possible.

For more details about this vulnerability, you can refer to the official Linux Kernel repository and the associated commit history. Additionally, you can reach out to info@devnack.com for further support and assistance.

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