net/smc: Use a mutex for locking "struct smc_pnettable"

Kernel Updated 02 Oct 2025

Summary

18/03/2022
N/A
No i
Unrated
Not published

GSD-2022-1000805: net/smc: Use a mutex for locking "struct smc_pnettable". Affects Kernel versions >= 64e28b52c7a6616217bee67ba2ad886f478f9737, < 062772d5cc8cd4018585cdbc2c03457dfb5a3d88. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The net/smc package is a part of the Linux Kernel ecosystem. It provides support for the SMC (System Management Controller) protocol, which allows for efficient communication between systems. The "struct smc_pnettable" is a data structure used by the net/smc package to manage network tables. However, it lacks proper locking mechanisms, making it susceptible to race conditions and potential security vulnerabilities.

Vulnerability Detail

The vulnerability in the net/smc package arises from the absence of a mutex for locking the "struct smc_pnettable" data structure. This can lead to race conditions when multiple threads or processes attempt to access or modify the network tables simultaneously. An attacker could potentially exploit these race conditions to gain unauthorized access, modify network configurations, or cause denial-of-service conditions. The vulnerability was introduced in Linux Kernel version v5.1 and is fixed in version v5.15.26 by commit 062772d5cc8cd4018585cdbc2c03457dfb5a3d88.

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, it is possible to manually add a mutex lock to the affected code section. Here is an example of how the mutex can be added:

#include <linux/mutex.h>

struct smc_pnettable {
    // Existing code
    struct mutex lock;
    // Existing code
};

// Initialize the mutex
static void smc_pnettable_init(struct smc_pnettable *pnet)
{
    mutex_init(&pnet->lock);
}

// Lock the mutex before accessing the network tables
static void smc_pnettable_lock(struct smc_pnettable *pnet)
{
    mutex_lock(&pnet->lock);
}

// Unlock the mutex after accessing the network tables
static void smc_pnettable_unlock(struct smc_pnettable *pnet)
{
    mutex_unlock(&pnet->lock);
}

Please note that this workaround is not a permanent solution and should be replaced with the official fix as soon as possible.

Conclusion

The net/smc package in the Linux Kernel is vulnerable to race conditions due to the lack of a mutex for locking the "struct smc_pnettable" data structure. This vulnerability can potentially lead to unauthorized access, network configuration modifications, and denial-of-service conditions. It is crucial to update the Kernel to version v5.15.26 or later and apply the official fix. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The net/smc package is a component of the Linux Kernel ecosystem that provides support for the SMC (System Management Controller) protocol. It enables efficient communication between systems.

The "struct smc_pnettable" data structure is used by the net/smc package to manage network tables. It stores information about network configurations and connections.

The absence of a mutex in "struct smc_pnettable" makes it susceptible to race conditions. When multiple threads or processes attempt to access or modify the network tables simultaneously, it can lead to inconsistent or corrupted data, potentially enabling unauthorized access or denial-of-service attacks.

The impact of this vulnerability can vary depending on the specific usage of the net/smc package. However, potential consequences include unauthorized access to network configurations, modification of network tables, and denial-of-service conditions.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.15.26 or later. Additionally, ensure that all dependent packages and modules are also updated to their latest versions.

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