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-1002066: IB/qib: Protect from buffer overflow in struct qib_user_sdma_pkt fields. Affects Kernel versions >= f931551bafe1f10ded7f5282e2aa162c267a2e5d, < c3e17e58f571f34c51aeb17274ed02c2ed5cf780. 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. It provides InfiniBand (IB) support for the QLogic InfiniPath and PathScale InfiniPath adapters. These adapters enable high-performance computing and data center applications. The vulnerability in this package allows for a buffer overflow in the struct qib_user_sdma_pkt fields.

Vulnerability Detail

The buffer overflow vulnerability in the struct qib_user_sdma_pkt fields of the IB/qib package can potentially lead to security breaches. An attacker could exploit this vulnerability to execute arbitrary code or cause a denial-of-service (DoS) attack. The vulnerability was introduced in version v2.6.35 of the Linux Kernel and has been fixed in version v5.10.77 by commit c3e17e58f571f34c51aeb17274ed02c2ed5cf780.

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 input validation and bounds checking in the affected code. By ensuring that the struct qib_user_sdma_pkt fields are properly validated and do not exceed their allocated buffer size, the risk of buffer overflow can be mitigated. Here is an example of how input validation can be implemented in C code:

#include <stddef.h>
#include <stdint.h>

struct qib_user_sdma_pkt {
  // Fields of the struct
};

void process_packet(struct qib_user_sdma_pkt* pkt, size_t pkt_size) {
  if (pkt_size > sizeof(struct qib_user_sdma_pkt)) {
    // Handle error or reject the packet
  }
  // Process the packet
}

Conclusion

The buffer overflow vulnerability in the IB/qib package can have serious security implications. It is crucial to update the Linux Kernel to the fixed version or implement the recommended workaround to mitigate the risk. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The buffer overflow vulnerability in the IB/qib package can allow an attacker to execute arbitrary code or cause a denial-of-service (DoS) attack.

To fix this vulnerability, update the Linux Kernel to version v5.10.77 or later.

Yes, you can implement input validation and bounds checking in the affected code as a temporary workaround.

The vulnerability was introduced in version v2.6.35 of the Linux Kernel and is fixed in version v5.10.77.

You can find more information about this vulnerability in the GSD-2021-1002066 entry of the GSD database maintained by the Cloud Security Alliance.

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