# CVE-2026-74297: RDMA/mlx5: Fix undefined shift of user RQ WQE size

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-08-15T05:58:01.414Z
- Modified: 2026-10-16T19:17:37.710Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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

RDMA/mlx5: Fix undefined shift of user RQ WQE size

set_rq_size() computes the RQ WQE size as "1 << rq_wqe_shift" based on
the user-provided rq_wqe_shift, which is only checked to be greater than
32, so shifts of 32 are still accepted. A shift of 31 also overflows a
signed integer, leading to undefined behavior.

Use check_shl_overflow() to compute the RQ WQE size and reject any
invalid values.

(As written by CVE List.)

## Affected

- Linux Linux: from e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c before 9fff54929cc00849d738faa99f06c32399aeb026; from e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c before b746f949c2ac2b041102836095d6d4a2ef21fa75; from e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c before c1dbf52d24a8cb1aa56780ba51b72e7d495f258c; from e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c before 6fc874fdfb366bfb11c62e6af9a831c8be59ddda; from e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c before 42f3d2c8c18b92ea33e506a38b64f1a8986c2823; from e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c before 4b87a2497276a72fd63028e7419abf0fb7ed837b; from e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c before b732db02a2b04cde393638df19de6251ce62a74e; from e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c before d881d60223aac8fdc12b227d89c76e131e92a9cd; 3.11 (not affected: before 3.11; from 5.10.261 up to 5.10.*; from 5.15.212 up to 5.15.*; from 6.1.178 up to 6.1.*; from 6.6.145 up to 6.6.*; from 6.12.97 up to 6.12.*; from 6.18.40 up to 6.18.*; from 7.1.5 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/9fff54929cc00849d738faa99f06c32399aeb026>
- <https://git.kernel.org/stable/c/b746f949c2ac2b041102836095d6d4a2ef21fa75>
- <https://git.kernel.org/stable/c/c1dbf52d24a8cb1aa56780ba51b72e7d495f258c>
- <https://git.kernel.org/stable/c/6fc874fdfb366bfb11c62e6af9a831c8be59ddda>
- <https://git.kernel.org/stable/c/42f3d2c8c18b92ea33e506a38b64f1a8986c2823>
- <https://git.kernel.org/stable/c/4b87a2497276a72fd63028e7419abf0fb7ed837b>
- <https://git.kernel.org/stable/c/b732db02a2b04cde393638df19de6251ce62a74e>
- <https://git.kernel.org/stable/c/d881d60223aac8fdc12b227d89c76e131e92a9cd>

## Sources

- CVE List: [CVE-2026-74297](https://www.cve.org/CVERecord?id=CVE-2026-74297), CVE Terms of Use, modified 2026-10-16
- NVD: [CVE-2026-74297](https://nvd.nist.gov/vuln/detail/CVE-2026-74297), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-74297 · Whole record: https://cve.day/CVE-2026-74297.json · Rebuilt by cve.day 2026-11-25T22:59:33.161Z
