RDMA/mlx5: Fix releasing unallocated memory in dereg MR flow

Kernel Updated 02 Oct 2025

Summary

27/12/2021
N/A
No i
Unrated
Not published

GSD-2021-1002720: RDMA/mlx5: Fix releasing unallocated memory in dereg MR flow. Affects Kernel versions >= f18ec422311767738ef4033b61e91cae07163b22, < e3bc4d4b50cae7db08e50dbe43f771c906e97701. 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 RDMA/mlx5 package is a component of the Linux Kernel that provides support for Remote Direct Memory Access (RDMA) over Mellanox ConnectX-4 and ConnectX-5 adapters. RDMA allows for high-speed, low-latency communication between remote systems by enabling direct memory access without involving the operating system's CPU. The mlx5 driver is responsible for managing the Mellanox ConnectX-4 and ConnectX-5 adapters. This vulnerability affects the deregister memory region (MR) flow in the RDMA/mlx5 package.

Vulnerability Detail

The vulnerability in the deregister MR flow of RDMA/mlx5 arises from a flaw in memory management. Specifically, there is a bug that causes unallocated memory to be released, leading to potential memory corruption or crashes. An attacker could potentially exploit this vulnerability to execute arbitrary code or cause a denial-of-service (DoS) condition. The vulnerability was introduced in version v5.13 of the Linux Kernel and has been fixed in version v5.15.10.

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

There is no known workaround for this vulnerability. It is essential to update the Linux Kernel to the fixed version to mitigate the risk.

Conclusion

The RDMA/mlx5 package in the Linux Kernel is vulnerable to a memory management issue in the deregister MR flow. This vulnerability can lead to memory corruption or crashes, potentially allowing an attacker to execute arbitrary code or cause a denial-of-service condition. To mitigate the risk, it is crucial to update the Linux Kernel to version v5.15.10 or later. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

RDMA/mlx5 is a component of the Linux Kernel that provides support for Remote Direct Memory Access (RDMA) over Mellanox ConnectX-4 and ConnectX-5 adapters. It enables high-speed, low-latency communication between remote systems.

This vulnerability in the deregister MR flow of RDMA/mlx5 can lead to memory corruption or crashes. An attacker could potentially exploit this vulnerability to execute arbitrary code or cause a denial-of-service (DoS) condition.

To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.15.10 or later. This update includes the necessary patch to address the memory management issue in the RDMA/mlx5 package.

No, there is no known workaround for this vulnerability. Updating the Linux Kernel to the fixed version is the recommended solution.

You can find more information about this vulnerability in the Open Source Vulnerability database entry GSD-2021-1002720.

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