# CVE-2021-47080: RDMA/core: Prevent divide-by-zero error triggered by the user

> 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)
- **CWE:** CWE-369
- **Published:** 2024-03-01T21:15:15.942Z
- **Modified:** 2026-06-17T04:16:25.090Z

## Who should check

- Anyone running Linux \>= 9f85cbe50aa044a46f0a22fda323fa27b80c82da, \< 66ab7fcdac34b890017f04f391507ef5b2b89a13; \>= 9f85cbe50aa044a46f0a22fda323fa27b80c82da, \< e6871b4270c05f8b212e7d98aee82b357972c80a; \>= 9f85cbe50aa044a46f0a22fda323fa27b80c82da, \< 54d87913f147a983589923c7f651f97de9af5be1
- Anyone running Linux 5.10

## Description

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

RDMA/core: Prevent divide-by-zero error triggered by the user

The user\_entry\_size is supplied by the user and later used as a
denominator to calculate number of entries. The zero supplied by the user
will trigger the following divide-by-zero error:

 divide error: 0000 \[\#1\] SMP KASAN PTI
 CPU: 4 PID: 497 Comm: c\_repro Not tainted 5.13.0-rc1+ \#281
 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014
 RIP: 0010:ib\_uverbs\_handler\_UVERBS\_METHOD\_QUERY\_GID\_TABLE+0x1b1/0x510
 Code: 87 59 03 00 00 e8 9f ab 1e ff 48 8d bd a8 00 00 00 e8 d3 70 41 ff 44 0f b7 b5 a8 00 00 00 e8 86 ab 1e ff 31 d2 4c 89 f0 31 ff \<49\> f7 f5 48 89 d6 48 89 54 24 10 48 89 04 24 e8 1b ad 1e ff 48 8b
 RSP: 0018:ffff88810416f828 EFLAGS: 00010246
 RAX: 0000000000000008 RBX: 1ffff1102082df09 RCX: ffffffff82183f3d
 RDX: 0000000000000000 RSI: ffff888105f2da00 RDI: 0000000000000000
 RBP: ffff88810416fa98 R08: 0000000000000001 R09: ffffed102082df5f
 R10: ffff88810416faf7 R11: ffffed102082df5e R12: 0000000000000000
 R13: 0000000000000000 R14: 0000000000000008 R15: ffff88810416faf0
 FS:  00007f5715efa740(0000) GS:ffff88811a700000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: 0000000020000840 CR3: 000000010c2e0001 CR4: 0000000000370ea0
 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
 Call Trace:
  ? ib\_uverbs\_handler\_UVERBS\_METHOD\_INFO\_HANDLES+0x4b0/0x4b0
  ib\_uverbs\_cmd\_verbs+0x1546/0x1940
  ib\_uverbs\_ioctl+0x186/0x240
  \_\_x64\_sys\_ioctl+0x38a/0x1220
  do\_syscall\_64+0x3f/0x80
  entry\_SYSCALL\_64\_after\_hwframe+0x44/0xae

## Affected and fixed versions

- Linux: \>= 9f85cbe50aa044a46f0a22fda323fa27b80c82da, \< 66ab7fcdac34b890017f04f391507ef5b2b89a13; \>= 9f85cbe50aa044a46f0a22fda323fa27b80c82da, \< e6871b4270c05f8b212e7d98aee82b357972c80a; \>= 9f85cbe50aa044a46f0a22fda323fa27b80c82da, \< 54d87913f147a983589923c7f651f97de9af5be1 (cvelist)
- Linux: 5.10 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2021-47080.md
Affected: Linux >= 9f85cbe50aa044a46f0a22fda323fa27b80c82da, < 66ab7fcdac34b890017f04f391507ef5b2b89a13; >= 9f85cbe50aa044a46f0a22fda323fa27b80c82da, < e6871b4270c05f8b212e7d98aee82b357972c80a; >= 9f85cbe50aa044a46f0a22fda323fa27b80c82da, < 54d87913f147a983589923c7f651f97de9af5be1; Linux 5.10
Fixed in: Linux 66ab7fcdac34b890017f04f391507ef5b2b89a13, Linux 54d87913f147a983589923c7f651f97de9af5be1

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

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

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

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

Linux \>= 9f85cbe50aa044a46f0a22fda323fa27b80c82da, \< 66ab7fcdac34b890017f04f391507ef5b2b89a13; \>= 9f85cbe50aa044a46f0a22fda323fa27b80c82da, \< e6871b4270c05f8b212e7d98aee82b357972c80a; \>= 9f85cbe50aa044a46f0a22fda323fa27b80c82da, \< 54d87913f147a983589923c7f651f97de9af5be1; Linux 5.10.

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

Yes. Fixed in Linux 66ab7fcdac34b890017f04f391507ef5b2b89a13, Linux 54d87913f147a983589923c7f651f97de9af5be1. Upgrade Linux to 54d87913f147a983589923c7f651f97de9af5be1 or later.

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

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/66ab7fcdac34b890017f04f391507ef5b2b89a13>
- patch: <https://git.kernel.org/stable/c/e6871b4270c05f8b212e7d98aee82b357972c80a>
- patch: <https://git.kernel.org/stable/c/54d87913f147a983589923c7f651f97de9af5be1>

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

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