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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 9% of CVEs (2026-12-01)
- Published: 2024-05-21T14:19:56.597Z
- Modified: 2026-06-17T04:17:03.053Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 436f2ad05a0b65b1467ddf51bc68171c381bf844 before 8dc1b0e0ca204596c50bcd159ee069ae0f998176; from 436f2ad05a0b65b1467ddf51bc68171c381bf844 before 2adcb4c5a52a2623cd2b43efa7041e74d19f3a5e; 3.12 (not affected: before 3.12; from 5.12.11 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 3.12 before 5.12.11; 5.13

## References

- <https://git.kernel.org/stable/c/8dc1b0e0ca204596c50bcd159ee069ae0f998176> (patch)
- <https://git.kernel.org/stable/c/2adcb4c5a52a2623cd2b43efa7041e74d19f3a5e> (patch)

## Sources

- CVE List: [CVE-2021-47265](https://www.cve.org/CVERecord?id=CVE-2021-47265), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47265](https://nvd.nist.gov/vuln/detail/CVE-2021-47265), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47265 · Whole record: https://cve.day/CVE-2021-47265.json · Rebuilt by cve.day 2026-11-25T22:58:08.764Z
