# CVE-2022-49076: RDMA/hfi1: Fix use-after-free bug for mm struct

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-02-26T01:54:39.251Z
- **Modified:** 2026-08-05T08:53:45.482Z

## Who should check

- Anyone running Linux \>= 3d2a9d642512c21a12d19b9250e7a835dcb41a79, \< 5f54364ff6cfcd14cddf5441c4a490bb28dd69f7; \>= 3d2a9d642512c21a12d19b9250e7a835dcb41a79, \< 9ca11bd8222a612de0d2f54d050bfcf61ae2883f; \>= 3d2a9d642512c21a12d19b9250e7a835dcb41a79, \< 0b7186d657ee55e2cdefae498f07d5c1961e8023; \>= 3d2a9d642512c21a12d19b9250e7a835dcb41a79, \< 5a9a1b24ddb510715f8f621263938186579a965c; \>= 3d2a9d642512c21a12d19b9250e7a835dcb41a79, \< 2bbac98d0930e8161b1957dc0ec99de39ade1b3c; 5732f83596f8a573f2cde814cc76a54e1a8995c7; \>= 5.9.12, \< 5.10
- Anyone running Linux 5.10

## 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 and fixed versions

- Linux: \>= 3d2a9d642512c21a12d19b9250e7a835dcb41a79, \< 5f54364ff6cfcd14cddf5441c4a490bb28dd69f7; \>= 3d2a9d642512c21a12d19b9250e7a835dcb41a79, \< 9ca11bd8222a612de0d2f54d050bfcf61ae2883f; \>= 3d2a9d642512c21a12d19b9250e7a835dcb41a79, \< 0b7186d657ee55e2cdefae498f07d5c1961e8023; \>= 3d2a9d642512c21a12d19b9250e7a835dcb41a79, \< 5a9a1b24ddb510715f8f621263938186579a965c; \>= 3d2a9d642512c21a12d19b9250e7a835dcb41a79, \< 2bbac98d0930e8161b1957dc0ec99de39ade1b3c; 5732f83596f8a573f2cde814cc76a54e1a8995c7; \>= 5.9.12, \< 5.10 (cvelist)
- Linux: 5.10 (cvelist)

## Mitigation

- Upgrade Linux to 5.10 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49076. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49076.md
Affected: Linux >= 3d2a9d642512c21a12d19b9250e7a835dcb41a79, < 5f54364ff6cfcd14cddf5441c4a490bb28dd69f7; >= 3d2a9d642512c21a12d19b9250e7a835dcb41a79, < 9ca11bd8222a612de0d2f54d050bfcf61ae2883f; >= 3d2a9d642512c21a12d19b9250e7a835dcb41a79, < 0b7186d657ee55e2cdefae498f07d5c1961e8023; >= 3d2a9d642512c21a12d19b9…
Fixed in: Linux 5f54364ff6cfcd14cddf5441c4a490bb28dd69f7, Linux 9ca11bd8222a612de0d2f54d050bfcf61ae2883f, Linux 0b7186d657ee55e2cdefae498f07d5c1961e8023, Linux 5a9a1b24ddb510715f8f621263938186579a965c, Linux 2bbac98d0930e8161b1957dc0ec99de39ade1b3c, Linux 5.10

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-49076 being exploited?

There is no confirmed exploitation: CVE-2022-49076 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-49076?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-49076?

Linux \>= 3d2a9d642512c21a12d19b9250e7a835dcb41a79, \< 5f54364ff6cfcd14cddf5441c4a490bb28dd69f7; \>= 3d2a9d642512c21a12d19b9250e7a835dcb41a79, \< 9ca11bd8222a612de0d2f54d050bfcf61ae2883f; \>= 3d2a9d642512c21a12d19b9250e7a835dcb41a79, \< 0b7186d657ee55e2cdefae498f07d5c1961e8023; \>= 3d2a9d642512c21a12d19b9250e7a835dcb41a79, \< 5a9a1b24ddb510715f8f621263938186579a965c; \>= 3d2a9d642512c21a12d19b9250e7a835dcb41a79, \< 2bbac98d0930e8161b1957dc0ec99de39ade1b3c; 5732f83596f8a573f2cde814cc76a54e1a8995c7; \>= 5.9.12, \< 5.10; Linux 5.10.

### Is there a fix for CVE-2022-49076?

Yes. Fixed in Linux 5f54364ff6cfcd14cddf5441c4a490bb28dd69f7, Linux 9ca11bd8222a612de0d2f54d050bfcf61ae2883f, Linux 0b7186d657ee55e2cdefae498f07d5c1961e8023, Linux 5a9a1b24ddb510715f8f621263938186579a965c, Linux 2bbac98d0930e8161b1957dc0ec99de39ade1b3c, Linux 5.10. Upgrade Linux to 5.10 or later.

### How do I check if I'm affected by CVE-2022-49076?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/5f54364ff6cfcd14cddf5441c4a490bb28dd69f7>
- patch: <https://git.kernel.org/stable/c/9ca11bd8222a612de0d2f54d050bfcf61ae2883f>
- patch: <https://git.kernel.org/stable/c/0b7186d657ee55e2cdefae498f07d5c1961e8023>
- patch: <https://git.kernel.org/stable/c/5a9a1b24ddb510715f8f621263938186579a965c>
- patch: <https://git.kernel.org/stable/c/2bbac98d0930e8161b1957dc0ec99de39ade1b3c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49076>

HTML: <https://flawdb.com/CVE-2022-49076> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49076>
