Use-after-free bug in RDMA/hfi1 for mm struct

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1001347: RDMA/hfi1: Fix use-after-free bug for mm struct. Affects Kernel versions >= 3d2a9d642512c21a12d19b9250e7a835dcb41a79, < 0b7186d657ee55e2cdefae498f07d5c1961e8023. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The RDMA/hfi1 package is a component of the Linux Kernel that provides support for Remote Direct Memory Access (RDMA) over the HFI1 InfiniBand driver. RDMA allows for high-speed, low-latency data transfers between remote systems. The mm struct is a data structure in the Linux Kernel that represents a process's memory management information, including memory mappings and permissions. This vulnerability in RDMA/hfi1 involves a use-after-free bug in the handling of the mm struct.

Vulnerability Detail

The use-after-free bug in RDMA/hfi1 occurs when a reference to the mm struct is accessed after it has been freed. This can lead to a variety of issues, including crashes, privilege escalation, and information disclosure. An attacker may be able to exploit this vulnerability to execute arbitrary code or gain elevated privileges. The vulnerability was introduced in version v5.10 of the Linux Kernel and has been fixed in version v5.16.20.

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 specific workaround mentioned for this vulnerability.

Conclusion

The use-after-free bug in RDMA/hfi1 for the mm struct can have serious security implications, including the potential for arbitrary code execution and privilege escalation. It is crucial to update the Linux Kernel to the patched version to mitigate the risk of exploitation. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

RDMA/hfi1 is a component of the Linux Kernel that provides support for Remote Direct Memory Access (RDMA) over the HFI1 InfiniBand driver. It enables high-speed, low-latency data transfers between remote systems.

A use-after-free bug occurs when a program or system continues to reference a memory object after it has been freed. This can lead to various issues, including crashes, privilege escalation, and information disclosure.

The use-after-free bug in RDMA/hfi1 can potentially be exploited by an attacker to execute arbitrary code or gain elevated privileges. It may also result in crashes or information disclosure.

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 and the Vulert Playground will analyze it for any open-source vulnerabilities, including this one.

For more information about this vulnerability, you can refer to the vulnerability details in the GSD database (https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1001xxx/GSD-2022-1001347.json).

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