SUNRPC: lock against ->sock changing during sysfs read in Kernel

Kernel Updated 02 Oct 2025

Summary

27/02/2022
N/A
No i
Unrated
Not published

GSD-2022-1000509: SUNRPC: lock against ->sock changing during sysfs read. Affects Kernel versions >= 17f09d3f619a7ad2d2b021b4e5246f08225b1b0f, < 9482ab4540f5bcc869b44c067ae99b5fca16bd07. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Kernel is a fundamental component of the Linux operating system, responsible for managing system resources and providing an interface for applications to interact with the hardware. It plays a crucial role in maintaining the stability and security of the system. However, a vulnerability has been discovered in the Kernel related to the SUNRPC (Simple Unified Network Protocol) module. This vulnerability allows an attacker to change the ->sock during a sysfs read operation, potentially leading to unauthorized access or privilege escalation.

Vulnerability Detail

The vulnerability arises from a lack of proper locking mechanisms in the Kernel's SUNRPC module. During a sysfs read operation, the ->sock can be modified by an attacker, bypassing the intended restrictions. This can result in various security issues, such as unauthorized access to sensitive information or the ability to execute arbitrary code with elevated privileges. The impact and attack plausibility of this vulnerability have not been fully proven yet.

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 temporary workaround, users can apply a patch provided by the Linux Kernel community. Here is an example of how to apply the patch:

  1. Download the patch file from the official Linux Kernel repository.

  2. Navigate to the Kernel source code directory.

  3. Apply the patch using the 'patch' command:

    $ patch -p1 < path/to/patch/file

  4. Recompile and reinstall the Kernel.

Please note that applying patches manually can be complex and error-prone. It is recommended to update to the latest Kernel version whenever possible.

Conclusion

In conclusion, the SUNRPC vulnerability in the Kernel poses a potential security risk, allowing attackers to modify the ->sock during sysfs read operations. It is crucial to update the Kernel to the latest version to mitigate this vulnerability. If you need further assistance or support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The Kernel is a core component of the Linux operating system, responsible for managing system resources and providing an interface for applications to interact with the hardware.

SUNRPC (Simple Unified Network Protocol) is a module in the Kernel that facilitates remote procedure calls (RPC) between networked systems.

sysfs is a virtual file system provided by the Kernel that exposes information about various devices and drivers in the system.

This vulnerability can lead to unauthorized access to sensitive information, privilege escalation, or the execution of arbitrary code with elevated privileges.

You can use Vulert's playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it for any open-source vulnerabilities, including this one.

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