# CVE-2022-50543: RDMA/rxe: Fix mr-\>map double free

> 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.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-415
- **Published:** 2025-10-07T15:21:07.939Z
- **Modified:** 2026-08-05T08:59:06.203Z

## Who should check

- Anyone running Linux \>= 1e75550648da1fa1cd1969e7597355de8fe8caf6, \< 6ce577f09013206e36e674cd27da3707b2278268; \>= 1e75550648da1fa1cd1969e7597355de8fe8caf6, \< 06f73568f553b5be6ba7f6fe274d333ea29fc46d; \>= 1e75550648da1fa1cd1969e7597355de8fe8caf6, \< 7d984dac8f6bf4ebd3398af82b357e1d181ecaac; e004a35e8148ad9fc438b0479884641acf382896; \>= 5.19.4, \< 5.20
- Anyone running Linux 6.0

## Description

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

RDMA/rxe: Fix mr-\>map double free

rxe\_mr\_cleanup() which tries to free mr-\>map again will be called when
rxe\_mr\_init\_user() fails:

   CPU: 0 PID: 4917 Comm: rdma\_flush\_serv Kdump: loaded Not tainted 6.1.0-rc1-roce-flush+ \#25
   Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014
   Call Trace:
    \<TASK\>
    dump\_stack\_lvl+0x45/0x5d
    panic+0x19e/0x349
    end\_report.part.0+0x54/0x7c
    kasan\_report.cold+0xa/0xf
    rxe\_mr\_cleanup+0x9d/0xf0 \[rdma\_rxe\]
    \_\_rxe\_cleanup+0x10a/0x1e0 \[rdma\_rxe\]
    rxe\_reg\_user\_mr+0xb7/0xd0 \[rdma\_rxe\]
    ib\_uverbs\_reg\_mr+0x26a/0x480 \[ib\_uverbs\]
    ib\_uverbs\_handler\_UVERBS\_METHOD\_INVOKE\_WRITE+0x1a2/0x250 \[ib\_uverbs\]
    ib\_uverbs\_cmd\_verbs+0x1397/0x15a0 \[ib\_uverbs\]

This issue was firstly exposed since commit b18c7da63fcb ("RDMA/rxe: Fix
memory leak in error path code") and then we fixed it in commit
8ff5f5d9d8cf ("RDMA/rxe: Prevent double freeing rxe\_map\_set()") but this
fix was reverted together at last by commit 1e75550648da (Revert
"RDMA/rxe: Create duplicate mapping tables for FMRs")

Simply let rxe\_mr\_cleanup() always handle freeing the mr-\>map once it is
successfully allocated.

## Affected and fixed versions

- Linux: \>= 1e75550648da1fa1cd1969e7597355de8fe8caf6, \< 6ce577f09013206e36e674cd27da3707b2278268; \>= 1e75550648da1fa1cd1969e7597355de8fe8caf6, \< 06f73568f553b5be6ba7f6fe274d333ea29fc46d; \>= 1e75550648da1fa1cd1969e7597355de8fe8caf6, \< 7d984dac8f6bf4ebd3398af82b357e1d181ecaac; e004a35e8148ad9fc438b0479884641acf382896; \>= 5.19.4, \< 5.20 (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-50543.md
Affected: Linux >= 1e75550648da1fa1cd1969e7597355de8fe8caf6, < 6ce577f09013206e36e674cd27da3707b2278268; >= 1e75550648da1fa1cd1969e7597355de8fe8caf6, < 06f73568f553b5be6ba7f6fe274d333ea29fc46d; >= 1e75550648da1fa1cd1969e7597355de8fe8caf6, < 7d984dac8f6bf4ebd3398af82b357e1d181ecaac; e004a35e8148ad9fc438b04798…
Fixed in: Linux 6ce577f09013206e36e674cd27da3707b2278268, Linux 06f73568f553b5be6ba7f6fe274d333ea29fc46d, Linux 7d984dac8f6bf4ebd3398af82b357e1d181ecaac, Linux 5.20

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

There is no confirmed exploitation: CVE-2022-50543 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-50543?

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

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

Linux \>= 1e75550648da1fa1cd1969e7597355de8fe8caf6, \< 6ce577f09013206e36e674cd27da3707b2278268; \>= 1e75550648da1fa1cd1969e7597355de8fe8caf6, \< 06f73568f553b5be6ba7f6fe274d333ea29fc46d; \>= 1e75550648da1fa1cd1969e7597355de8fe8caf6, \< 7d984dac8f6bf4ebd3398af82b357e1d181ecaac; e004a35e8148ad9fc438b0479884641acf382896; \>= 5.19.4, \< 5.20; Linux 6.0.

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

Yes. Fixed in Linux 6ce577f09013206e36e674cd27da3707b2278268, Linux 06f73568f553b5be6ba7f6fe274d333ea29fc46d, Linux 7d984dac8f6bf4ebd3398af82b357e1d181ecaac, Linux 5.20. Upgrade Linux to 5.20 or later.

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

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/6ce577f09013206e36e674cd27da3707b2278268>
- patch: <https://git.kernel.org/stable/c/06f73568f553b5be6ba7f6fe274d333ea29fc46d>
- patch: <https://git.kernel.org/stable/c/7d984dac8f6bf4ebd3398af82b357e1d181ecaac>

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

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