# CVE-2021-47076: RDMA/rxe: Return CQE error if invalid lkey was supplied

> 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.23% (percentile 8, 2026-11-26)
- **Published:** 2024-03-01T21:15:13.395Z
- **Modified:** 2026-06-17T04:16:24.253Z

## Who should check

- Anyone running Linux \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< a81e72d49b0648f68ab201163dbfc7841056d7a2; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< abe31d25facdb9109fe2cf69890748295291570c; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< dc07628bd2bbc1da768e265192c28ebd301f509d
- Anyone running Linux 4.8

## Description

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

RDMA/rxe: Return CQE error if invalid lkey was supplied

RXE is missing update of WQE status in LOCAL\_WRITE failures.  This caused
the following kernel panic if someone sent an atomic operation with an
explicitly wrong lkey.

\[leonro@vm ~\]$ mkt test
test\_atomic\_invalid\_lkey (tests.test\_atomic.AtomicTest) ...
 WARNING: CPU: 5 PID: 263 at drivers/infiniband/sw/rxe/rxe\_comp.c:740 rxe\_completer+0x1a6d/0x2e30 \[rdma\_rxe\]
 Modules linked in: crc32\_generic rdma\_rxe ip6\_udp\_tunnel udp\_tunnel rdma\_ucm rdma\_cm ib\_umad ib\_ipoib iw\_cm ib\_cm mlx5\_ib ib\_uverbs ib\_core mlx5\_core ptp pps\_core
 CPU: 5 PID: 263 Comm: python3 Not tainted 5.13.0-rc1+ \#2936
 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014
 RIP: 0010:rxe\_completer+0x1a6d/0x2e30 \[rdma\_rxe\]
 Code: 03 0f 8e 65 0e 00 00 3b 93 10 06 00 00 0f 84 82 0a 00 00 4c 89 ff 4c 89 44 24 38 e8 2d 74 a9 e1 4c 8b 44 24 38 e9 1c f5 ff ff \<0f\> 0b e9 0c e8 ff ff b8 05 00 00 00 41 bf 05 00 00 00 e9 ab e7 ff
 RSP: 0018:ffff8880158af090 EFLAGS: 00010246
 RAX: 0000000000000000 RBX: ffff888016a78000 RCX: ffffffffa0cf1652
 RDX: 1ffff9200004b442 RSI: 0000000000000004 RDI: ffffc9000025a210
 RBP: dffffc0000000000 R08: 00000000ffffffea R09: ffff88801617740b
 R10: ffffed1002c2ee81 R11: 0000000000000007 R12: ffff88800f3b63e8
 R13: ffff888016a78008 R14: ffffc9000025a180 R15: 000000000000000c
 FS:  00007f88b622a740(0000) GS:ffff88806d540000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: 00007f88b5a1fa10 CR3: 000000000d848004 CR4: 0000000000370ea0
 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
 Call Trace:
  rxe\_do\_task+0x130/0x230 \[rdma\_rxe\]
  rxe\_rcv+0xb11/0x1df0 \[rdma\_rxe\]
  rxe\_loopback+0x157/0x1e0 \[rdma\_rxe\]
  rxe\_responder+0x5532/0x7620 \[rdma\_rxe\]
  rxe\_do\_task+0x130/0x230 \[rdma\_rxe\]
  rxe\_rcv+0x9c8/0x1df0 \[rdma\_rxe\]
  rxe\_loopback+0x157/0x1e0 \[rdma\_rxe\]
  rxe\_requester+0x1efd/0x58c0 \[rdma\_rxe\]
  rxe\_do\_task+0x130/0x230 \[rdma\_rxe\]
  rxe\_post\_send+0x998/0x1860 \[rdma\_rxe\]
  ib\_uverbs\_post\_send+0xd5f/0x1220 \[ib\_uverbs\]
  ib\_uverbs\_write+0x847/0xc80 \[ib\_uverbs\]
  vfs\_write+0x1c5/0x840
  ksys\_write+0x176/0x1d0
  do\_syscall\_64+0x3f/0x80
  entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae

## Affected and fixed versions

- Linux: \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< a81e72d49b0648f68ab201163dbfc7841056d7a2; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< abe31d25facdb9109fe2cf69890748295291570c; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< dc07628bd2bbc1da768e265192c28ebd301f509d (cvelist)
- Linux: 4.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2021-47076.md
Affected: Linux >= 8700e3e7c4857d28ebaa824509934556da0b3e76, < a81e72d49b0648f68ab201163dbfc7841056d7a2; >= 8700e3e7c4857d28ebaa824509934556da0b3e76, < abe31d25facdb9109fe2cf69890748295291570c; >= 8700e3e7c4857d28ebaa824509934556da0b3e76, < dc07628bd2bbc1da768e265192c28ebd301f509d; Linux 4.8
Fixed in: no fixed version listed yet

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

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

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

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

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

Linux \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< a81e72d49b0648f68ab201163dbfc7841056d7a2; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< abe31d25facdb9109fe2cf69890748295291570c; \>= 8700e3e7c4857d28ebaa824509934556da0b3e76, \< dc07628bd2bbc1da768e265192c28ebd301f509d; Linux 4.8.

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

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

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

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/abe31d25facdb9109fe2cf69890748295291570c>
- patch: <https://git.kernel.org/stable/c/dc07628bd2bbc1da768e265192c28ebd301f509d>
- other: <https://git.kernel.org/stable/c/a81e72d49b0648f68ab201163dbfc7841056d7a2>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>

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

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