Buffer Overflow Vulnerability in IB/qib Package

Kernel Updated 02 Oct 2025

Summary

14/11/2021
N/A
No i
Unrated
Not published

GSD-2021-1001964: IB/qib: Protect from buffer overflow in struct qib_user_sdma_pkt fields. Affects Kernel versions >= f931551bafe1f10ded7f5282e2aa162c267a2e5d, < 60833707b968d5ae02a75edb7886dcd4a957cf0d. 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 IB/qib package is a part of the Linux Kernel ecosystem and is responsible for providing InfiniBand support for the Linux operating system. InfiniBand is a high-speed interconnect technology used in data centers and high-performance computing environments. The qib module within the package enables users to perform direct memory access (DMA) operations. However, a buffer overflow vulnerability has been identified in the struct qib_user_sdma_pkt fields, which could potentially lead to security breaches and unauthorized access to sensitive information.

Vulnerability Detail

The buffer overflow vulnerability in the struct qib_user_sdma_pkt fields of the IB/qib package allows an attacker to overwrite adjacent memory locations, potentially leading to the execution of arbitrary code or a system crash. This vulnerability was introduced in version v2.6.35 of the Linux Kernel and has been fixed in version v4.14.255. The impact and attack plausibility of this vulnerability have not yet been proven.

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 disable the use of the struct qib_user_sdma_pkt fields in the affected code. This can be achieved by modifying the code to avoid using these fields or by implementing input validation and bounds checking to prevent buffer overflow. Here is an example of how input validation can be performed:

if (pkt_size <= MAX_PKT_SIZE) {
  // Process the packet
} else {
  // Handle the error
}

Conclusion

The buffer overflow vulnerability in the IB/qib package's struct qib_user_sdma_pkt fields poses a potential security risk. It is crucial to update the Linux Kernel to version v4.14.255 or later to fix this vulnerability. If immediate Kernel update is not possible, implementing input validation and bounds checking in the affected 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 IB/qib package is a component of the Linux Kernel that provides support for InfiniBand technology, enabling high-speed interconnectivity in data centers and high-performance computing environments.

A buffer overflow vulnerability occurs when a program writes data beyond the boundaries of a fixed-size buffer, potentially overwriting adjacent memory locations. This can lead to the execution of arbitrary code or a system crash.

You can use the Vulert Playground at Vulert Scanner to check if your application or system is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) to the playground, and it will provide real-time monitoring and alerts for open-source vulnerabilities.

There is currently no evidence to suggest that this vulnerability has been exploited in real-world attacks. However, it is still important to apply the necessary fixes and updates to mitigate any potential risks.

You can find more information about this vulnerability, including the specific commits that fix it, in the GSD-2021-1001964 entry of the GSD database maintained by the Cloud Security Alliance. The link to the entry is available in the references section of this report.

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