# CVE-2021-47265: RDMA: Verify port when creating flow rule

> 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-21T14:19:56.597Z
- **Modified:** 2026-06-17T04:17:03.053Z

## Who should check

- Anyone running Linux \>= 436f2ad05a0b65b1467ddf51bc68171c381bf844, \< 8dc1b0e0ca204596c50bcd159ee069ae0f998176; \>= 436f2ad05a0b65b1467ddf51bc68171c381bf844, \< 2adcb4c5a52a2623cd2b43efa7041e74d19f3a5e
- Anyone running Linux 3.12

## Description

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

RDMA: Verify port when creating flow rule

Validate port value provided by the user and with that remove no longer
needed validation by the driver.  The missing check in the mlx5\_ib driver
could cause to the below oops.

Call trace:
  \_create\_flow\_rule+0x2d4/0xf28 \[mlx5\_ib\]
  mlx5\_ib\_create\_flow+0x2d0/0x5b0 \[mlx5\_ib\]
  ib\_uverbs\_ex\_create\_flow+0x4cc/0x624 \[ib\_uverbs\]
  ib\_uverbs\_handler\_UVERBS\_METHOD\_INVOKE\_WRITE+0xd4/0x150 \[ib\_uverbs\]
  ib\_uverbs\_cmd\_verbs.isra.7+0xb28/0xc50 \[ib\_uverbs\]
  ib\_uverbs\_ioctl+0x158/0x1d0 \[ib\_uverbs\]
  do\_vfs\_ioctl+0xd0/0xaf0
  ksys\_ioctl+0x84/0xb4
  \_\_arm64\_sys\_ioctl+0x28/0xc4
  el0\_svc\_common.constprop.3+0xa4/0x254
  el0\_svc\_handler+0x84/0xa0
  el0\_svc+0x10/0x26c
 Code: b9401260 f9615681 51000400 8b001c20 (f9403c1a)

## Affected and fixed versions

- Linux: \>= 436f2ad05a0b65b1467ddf51bc68171c381bf844, \< 8dc1b0e0ca204596c50bcd159ee069ae0f998176; \>= 436f2ad05a0b65b1467ddf51bc68171c381bf844, \< 2adcb4c5a52a2623cd2b43efa7041e74d19f3a5e (cvelist)
- Linux: 3.12 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2021-47265.md
Affected: Linux >= 436f2ad05a0b65b1467ddf51bc68171c381bf844, < 8dc1b0e0ca204596c50bcd159ee069ae0f998176; >= 436f2ad05a0b65b1467ddf51bc68171c381bf844, < 2adcb4c5a52a2623cd2b43efa7041e74d19f3a5e; Linux 3.12
Fixed in: Linux 8dc1b0e0ca204596c50bcd159ee069ae0f998176, Linux 2adcb4c5a52a2623cd2b43efa7041e74d19f3a5e

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

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

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

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

Linux \>= 436f2ad05a0b65b1467ddf51bc68171c381bf844, \< 8dc1b0e0ca204596c50bcd159ee069ae0f998176; \>= 436f2ad05a0b65b1467ddf51bc68171c381bf844, \< 2adcb4c5a52a2623cd2b43efa7041e74d19f3a5e; Linux 3.12.

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

Yes. Fixed in Linux 8dc1b0e0ca204596c50bcd159ee069ae0f998176, Linux 2adcb4c5a52a2623cd2b43efa7041e74d19f3a5e. Upgrade Linux to 2adcb4c5a52a2623cd2b43efa7041e74d19f3a5e or later.

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

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/8dc1b0e0ca204596c50bcd159ee069ae0f998176>
- patch: <https://git.kernel.org/stable/c/2adcb4c5a52a2623cd2b43efa7041e74d19f3a5e>

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

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