# CVE-2021-47481: RDMA/mlx5: Initialize the ODP xarray when creating an ODP MR

> 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, NVD) `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.27% (percentile 12, 2026-11-26)
- **Published:** 2024-05-22T08:19:33.512Z
- **Modified:** 2026-06-17T04:17:34.520Z

## Who should check

- Anyone running Linux \>= a639e66703ee45745dc4057c7c2013ed9e1963a7, \< 5f6995295f65d1ee6f36d466d26afd98eb797afe; \>= a639e66703ee45745dc4057c7c2013ed9e1963a7, \< 5508546631a0f555d7088203dec2614e41b5106e; 29f91bd26f3ba828a55cb446ecd44caacf0df026; \>= 5.12.4, \< 5.13
- Anyone running Linux 5.13

## Description

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

RDMA/mlx5: Initialize the ODP xarray when creating an ODP MR

Normally the zero fill would hide the missing initialization, but an
errant set to desc\_size in reg\_create() causes a crash:

  BUG: unable to handle page fault for address: 0000000800000000
  PGD 0 P4D 0
  Oops: 0000 \[\#1\] SMP PTI
  CPU: 5 PID: 890 Comm: ib\_write\_bw Not tainted 5.15.0-rc4+ \#47
  Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014
  RIP: 0010:mlx5\_ib\_dereg\_mr+0x14/0x3b0 \[mlx5\_ib\]
  Code: 48 63 cd 4c 89 f7 48 89 0c 24 e8 37 30 03 e1 48 8b 0c 24 eb a0 90 0f 1f 44 00 00 41 56 41 55 41 54 55 53 48 89 fb 48 83 ec 30 \<48\> 8b 2f 65 48 8b 04 25 28 00 00 00 48 89 44 24 28 31 c0 8b 87 c8
  RSP: 0018:ffff88811afa3a60 EFLAGS: 00010286
  RAX: 000000000000001c RBX: 0000000800000000 RCX: 0000000000000000
  RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000800000000
  RBP: 0000000800000000 R08: 0000000000000000 R09: c0000000fffff7ff
  R10: ffff88811afa38f8 R11: ffff88811afa38f0 R12: ffffffffa02c7ac0
  R13: 0000000000000000 R14: ffff88811afa3cd8 R15: ffff88810772fa00
  FS:  00007f47b9080740(0000) GS:ffff88852cd40000(0000) knlGS:0000000000000000
  CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  CR2: 0000000800000000 CR3: 000000010761e003 CR4: 0000000000370ea0
  DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
  DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
  Call Trace:
   mlx5\_ib\_free\_odp\_mr+0x95/0xc0 \[mlx5\_ib\]
   mlx5\_ib\_dereg\_mr+0x128/0x3b0 \[mlx5\_ib\]
   ib\_dereg\_mr\_user+0x45/0xb0 \[ib\_core\]
   ? xas\_load+0x8/0x80
   destroy\_hw\_idr\_uobject+0x1a/0x50 \[ib\_uverbs\]
   uverbs\_destroy\_uobject+0x2f/0x150 \[ib\_uverbs\]
   uobj\_destroy+0x3c/0x70 \[ib\_uverbs\]
   ib\_uverbs\_cmd\_verbs+0x467/0xb00 \[ib\_uverbs\]
   ? uverbs\_finalize\_object+0x60/0x60 \[ib\_uverbs\]
   ? ttwu\_queue\_wakelist+0xa9/0xe0
   ? pty\_write+0x85/0x90
   ? file\_tty\_write.isra.33+0x214/0x330
   ? process\_echoes+0x60/0x60
   ib\_uverbs\_ioctl+0xa7/0x110 \[ib\_uverbs\]
   \_\_x64\_sys\_ioctl+0x10d/0x8e0
   ? vfs\_write+0x17f/0x260
   do\_syscall\_64+0x3c/0x80
   entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae

Add the missing xarray initialization and remove the desc\_size set.

## Affected and fixed versions

- Linux: \>= a639e66703ee45745dc4057c7c2013ed9e1963a7, \< 5f6995295f65d1ee6f36d466d26afd98eb797afe; \>= a639e66703ee45745dc4057c7c2013ed9e1963a7, \< 5508546631a0f555d7088203dec2614e41b5106e; 29f91bd26f3ba828a55cb446ecd44caacf0df026; \>= 5.12.4, \< 5.13 (cvelist)
- Linux: 5.13 (cvelist)

## Mitigation

- Upgrade Linux to 5.13 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2021-47481.md
Affected: Linux >= a639e66703ee45745dc4057c7c2013ed9e1963a7, < 5f6995295f65d1ee6f36d466d26afd98eb797afe; >= a639e66703ee45745dc4057c7c2013ed9e1963a7, < 5508546631a0f555d7088203dec2614e41b5106e; 29f91bd26f3ba828a55cb446ecd44caacf0df026; >= 5.12.4, < 5.13; Linux 5.13
Fixed in: Linux 5f6995295f65d1ee6f36d466d26afd98eb797afe, Linux 5508546631a0f555d7088203dec2614e41b5106e, Linux 5.13

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-2021-47481 being exploited?

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

### How serious is CVE-2021-47481?

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

### Which versions are affected by CVE-2021-47481?

Linux \>= a639e66703ee45745dc4057c7c2013ed9e1963a7, \< 5f6995295f65d1ee6f36d466d26afd98eb797afe; \>= a639e66703ee45745dc4057c7c2013ed9e1963a7, \< 5508546631a0f555d7088203dec2614e41b5106e; 29f91bd26f3ba828a55cb446ecd44caacf0df026; \>= 5.12.4, \< 5.13; Linux 5.13.

### Is there a fix for CVE-2021-47481?

Yes. Fixed in Linux 5f6995295f65d1ee6f36d466d26afd98eb797afe, Linux 5508546631a0f555d7088203dec2614e41b5106e, Linux 5.13. Upgrade Linux to 5.13 or later.

### How do I check if I'm affected by CVE-2021-47481?

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/5f6995295f65d1ee6f36d466d26afd98eb797afe>
- patch: <https://git.kernel.org/stable/c/5508546631a0f555d7088203dec2614e41b5106e>

## 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-2021-47481>

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