Race Condition Vulnerability in IB/rdmavt Package

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1002180: IB/rdmavt: add lock to call to rvt_error_qp to prevent a race condition. Affects Kernel versions >= d757c60eca9b22f4d108929a24401e0fdecda0b1, < 8a50937227c385a477177c9ffa122b4230e40666. 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 IB/rdmavt package is a component of the Linux Kernel ecosystem. It provides support for InfiniBand (IB) and RoCE (RDMA over Converged Ethernet) devices. This package enables efficient communication between nodes in high-performance computing clusters. The vulnerability in question arises due to a missing lock in a call to rvt_error_qp, which can lead to a race condition.

Vulnerability Detail

The race condition vulnerability in the IB/rdmavt package occurs when multiple threads or processes concurrently access the rvt_error_qp function without proper synchronization. This can result in unexpected behavior, such as memory corruption, crashes, or unauthorized access to sensitive data. Attackers may exploit this vulnerability to gain elevated privileges or disrupt the normal operation of the system. The vulnerability was introduced in version v5.1 of the Linux Kernel and has been fixed in version v5.4.189.

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

If updating the Linux Kernel is not immediately feasible, a possible workaround is to implement proper synchronization mechanisms in the code that calls the rvt_error_qp function. This can involve using locks or other synchronization primitives to ensure that only one thread or process accesses the function at a time. Here is an example of how a lock can be added to prevent the race condition:

// Include necessary headers
#include <linux/mutex.h>

// Define a mutex lock
static DEFINE_MUTEX(rvt_error_qp_lock);

// Acquire the lock before calling rvt_error_qp
mutex_lock(&rvt_error_qp_lock);

// Call rvt_error_qp
rvt_error_qp(...);

// Release the lock after the call
mutex_unlock(&rvt_error_qp_lock);

Conclusion

In conclusion, the race condition vulnerability in the IB/rdmavt package of the Linux Kernel can have serious security and stability implications. It is crucial to update to version v5.4.189 or later of the Linux Kernel to mitigate this vulnerability. If immediate updating is not possible, implementing proper synchronization mechanisms in the code can serve as a temporary workaround. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The race condition vulnerability in the IB/rdmavt package can lead to various security and stability issues, including memory corruption, crashes, unauthorized access to data, and potential privilege escalation.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will analyze and alert you in real-time if the vulnerability is present.

Yes, the vulnerability has been fixed in version v5.4.189 of the Linux Kernel. It is recommended to update to this version or a later one to mitigate the vulnerability.

Yes, a temporary workaround is to implement proper synchronization mechanisms in the code that calls the rvt_error_qp function. This involves using locks or other synchronization primitives to ensure only one thread or process accesses the function at a time.

You can find more information about this vulnerability, including the specific commits that introduced and fixed it, in the GSD-2022-1002180.json file available in the GSD Database (https://github.com/cloudsecurityalliance/gsd-database).

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