# CVE-2022-49930: RDMA/hns: Fix NULL pointer problem in free\_mr\_init()

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-05-01T14:11:07.408Z
- **Modified:** 2026-06-17T05:19:33.617Z

## Who should check

- Anyone running Linux \>= 70f92521584f1d1e8268311ee84413307b0fdea8, \< 0e23e85d86b78e734dd6654f1b69fbaeb5534c81; \>= 70f92521584f1d1e8268311ee84413307b0fdea8, \< 12bcaf87d8b66d8cd812479c8a6349dcb245375c
- Anyone running Linux 5.18

## Description

In the Linux kernel, the following vulnerability has been resolved:

RDMA/hns: Fix NULL pointer problem in free\_mr\_init()

Lock grab occurs in a concurrent scenario, resulting in stepping on a NULL
pointer.  It should be init mutex\_init() first before use the lock.

  Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
  Call trace:
   \_\_mutex\_lock.constprop.0+0xd0/0x5c0
   \_\_mutex\_lock\_slowpath+0x1c/0x2c
   mutex\_lock+0x44/0x50
   free\_mr\_send\_cmd\_to\_hw+0x7c/0x1c0 \[hns\_roce\_hw\_v2\]
   hns\_roce\_v2\_dereg\_mr+0x30/0x40 \[hns\_roce\_hw\_v2\]
   hns\_roce\_dereg\_mr+0x4c/0x130 \[hns\_roce\_hw\_v2\]
   ib\_dereg\_mr\_user+0x54/0x124
   uverbs\_free\_mr+0x24/0x30
   destroy\_hw\_idr\_uobject+0x38/0x74
   uverbs\_destroy\_uobject+0x48/0x1c4
   uobj\_destroy+0x74/0xcc
   ib\_uverbs\_cmd\_verbs+0x368/0xbb0
   ib\_uverbs\_ioctl+0xec/0x1a4
   \_\_arm64\_sys\_ioctl+0xb4/0x100
   invoke\_syscall+0x50/0x120
   el0\_svc\_common.constprop.0+0x58/0x190
   do\_el0\_svc+0x30/0x90
   el0\_svc+0x2c/0xb4
   el0t\_64\_sync\_handler+0x1a4/0x1b0
   el0t\_64\_sync+0x19c/0x1a0

## Affected and fixed versions

- Linux: \>= 70f92521584f1d1e8268311ee84413307b0fdea8, \< 0e23e85d86b78e734dd6654f1b69fbaeb5534c81; \>= 70f92521584f1d1e8268311ee84413307b0fdea8, \< 12bcaf87d8b66d8cd812479c8a6349dcb245375c (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- Upgrade Linux to 12bcaf87d8b66d8cd812479c8a6349dcb245375c 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-49930. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49930.md
Affected: Linux >= 70f92521584f1d1e8268311ee84413307b0fdea8, < 0e23e85d86b78e734dd6654f1b69fbaeb5534c81; >= 70f92521584f1d1e8268311ee84413307b0fdea8, < 12bcaf87d8b66d8cd812479c8a6349dcb245375c; Linux 5.18
Fixed in: Linux 0e23e85d86b78e734dd6654f1b69fbaeb5534c81, Linux 12bcaf87d8b66d8cd812479c8a6349dcb245375c

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-49930 being exploited?

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

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

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

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

Linux \>= 70f92521584f1d1e8268311ee84413307b0fdea8, \< 0e23e85d86b78e734dd6654f1b69fbaeb5534c81; \>= 70f92521584f1d1e8268311ee84413307b0fdea8, \< 12bcaf87d8b66d8cd812479c8a6349dcb245375c; Linux 5.18.

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

Yes. Fixed in Linux 0e23e85d86b78e734dd6654f1b69fbaeb5534c81, Linux 12bcaf87d8b66d8cd812479c8a6349dcb245375c. Upgrade Linux to 12bcaf87d8b66d8cd812479c8a6349dcb245375c or later.

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

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/0e23e85d86b78e734dd6654f1b69fbaeb5534c81>
- patch: <https://git.kernel.org/stable/c/12bcaf87d8b66d8cd812479c8a6349dcb245375c>

## 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-49930>

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