CVE-2022-49076

RDMA/hfi1: Fix use-after-free bug for mm struct

HIGH
7.8
CVSS Score
Published: February 26, 2025 at 01:54 AM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: RDMA/hfi1: Fix use-after-free bug for mm struct Under certain conditions, such as MPI_Abort, the hfi1 cleanup code may represent the last reference held on the task mm. hfi1_mmu_rb_unregister() then drops the last reference and the mm is freed before the final use in hfi1_release_user_pages(). A new task may allocate the mm structure while it is still being used, resulting in problems. One manifestation is corruption of the mmap_sem counter leading to a hang in down_write(). Another is corruption of an mm struct that is in use by another task.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 5.9.125.10 ≤ v < 5.10.1115.10 ≤ v < 5.15.345.10 ≤ v < 5.16.205.10 ≤ v < 5.17.35.10 ≤ v < 5.185.11 ≤ v < 5.15.345.16 ≤ v < 5.16.205.17 ≤ v < 5.17.35.9.12 ≤ v < 5.105.9.12 ≤ v < 5.10.1113d2a9d642512c21a12d19b9250e7a835dcb41a795.18 rc15.9.125732f83596f8a573f2cde814cc76a54e1a8995c7
Vendor states this is fixed in 0b7186d657ee55e2cdefae498f07d5c1961e8023 (fixed)
Vendor states this is fixed in 2bbac98d0930e8161b1957dc0ec99de39ade1b3c (fixed)
Vendor states this is fixed in 5a9a1b24ddb510715f8f621263938186579a965c (fixed)
Vendor states this is fixed in 5f54364ff6cfcd14cddf5441c4a490bb28dd69f7 (fixed)
Vendor states this is fixed in 9ca11bd8222a612de0d2f54d050bfcf61ae2883f (fixed)
Vendor states this is fixed in 5.10 (unaffected)
Vendor states this is fixed in 5.10.111 (unaffected)
Vendor states this is fixed in 5.15.34 (unaffected)
Vendor states this is fixed in 5.16.20 (unaffected)
Vendor states this is fixed in 5.17.3 (unaffected)
Vendor states this is fixed in 5.18 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0b7186d657ee55e2cdefae498f07d5c1961e8023
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2bbac98d0930e8161b1957dc0ec99de39ade1b3c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5a9a1b24ddb510715f8f621263938186579a965c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5f54364ff6cfcd14cddf5441c4a490bb28dd69f7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9ca11bd8222a612de0d2f54d050bfcf61ae2883f

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusANALYZED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card