# CVE-2023-54168: RDMA/mlx4: Prevent shift wrapping in set_user_sq_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.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-12-30T12:08:43.394Z
- Modified: 2026-10-15T22:17:54.120Z
- 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/mlx4: Prevent shift wrapping in set_user_sq_size()

The ucmd->log_sq_bb_count variable is controlled by the user so this
shift can wrap.  Fix it by using check_shl_overflow() in the same way
that it was done in commit 515f60004ed9 ("RDMA/hns: Prevent undefined
behavior in hns_roce_set_user_sq_size()").

(As written by CVE List.)

## Affected

- Linux Linux: from 839041329fd3410e07d614f81e75bb43367d8f89 before 3d5ae269c4bd392ec1edbfb3bd031b8f42d7feff; from 839041329fd3410e07d614f81e75bb43367d8f89 before 8feca625900777e02a449e53fe4121339934c38a; from 839041329fd3410e07d614f81e75bb43367d8f89 before 9ad3221c86cc9c6305594b742d4a72dfbd4ea579; from 839041329fd3410e07d614f81e75bb43367d8f89 before 9911be2155720221a4f1f722b22bd0e2388d8bcf; from 839041329fd3410e07d614f81e75bb43367d8f89 before 3ce0df3493277b9df275cb8455d9c677ae701230; from 839041329fd3410e07d614f81e75bb43367d8f89 before 196a6df08b08699ace4ce70e1efcdd9081b6565f; from 839041329fd3410e07d614f81e75bb43367d8f89 before a183905869e692b6b7805b7472235585eff8e429; from 839041329fd3410e07d614f81e75bb43367d8f89 before d50b3c73f1ac20dabc53dc6e9d64ce9c79a331eb; 2.6.24 (not affected: before 2.6.24; from 4.19.283 up to 4.19.*; from 5.4.243 up to 5.4.*; from 5.10.180 up to 5.10.*; from 5.15.111 up to 5.15.*; from 6.1.28 up to 6.1.*; from 6.2.15 up to 6.2.*; from 6.3.2 up to 6.3.*; from 6.4 up to *)

## References

- <https://git.kernel.org/stable/c/3d5ae269c4bd392ec1edbfb3bd031b8f42d7feff>
- <https://git.kernel.org/stable/c/8feca625900777e02a449e53fe4121339934c38a>
- <https://git.kernel.org/stable/c/9ad3221c86cc9c6305594b742d4a72dfbd4ea579>
- <https://git.kernel.org/stable/c/9911be2155720221a4f1f722b22bd0e2388d8bcf>
- <https://git.kernel.org/stable/c/3ce0df3493277b9df275cb8455d9c677ae701230>
- <https://git.kernel.org/stable/c/196a6df08b08699ace4ce70e1efcdd9081b6565f>
- <https://git.kernel.org/stable/c/a183905869e692b6b7805b7472235585eff8e429>
- <https://git.kernel.org/stable/c/d50b3c73f1ac20dabc53dc6e9d64ce9c79a331eb>

## Sources

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

---

Page: https://cve.day/CVE-2023-54168 · Whole record: https://cve.day/CVE-2023-54168.json · Rebuilt by cve.day 2026-11-25T22:58:35.204Z
