# CVE-2023-54168: RDMA/mlx4: Prevent shift wrapping in set\_user\_sq\_size()

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-12-30 · Modified: 2026-10-15
- Aliases: UBUNTU-CVE-2023-54168, DEBIAN-CVE-2023-54168
- Record: https://cvemate.com/vulnerability/CVE-2023-54168 · JSON: https://cvemate.com/vulnerability/CVE-2023-54168/json

## Description

```text
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()").
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.166%, percentile 6.036%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 127)

- debian linux (Debian): \< 6.1.37-1 \| \< 6.3.7-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-162.179 \| \< 5.15.0-79.86
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1109.118 \| \< 5.15.0-1042.47
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1041.46~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1109.118~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1109.118+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1115.122 \| \< 5.15.0-1045.52
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)

## 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>
- <https://ubuntu.com/security/CVE-2023-54168>
- <https://www.cve.org/CVERecord?id=CVE-2023-54168>
- <https://git.kernel.org/linus/d50b3c73f1ac20dabc53dc6e9d64ce9c79a331eb>
- <https://security-tracker.debian.org/tracker/CVE-2023-54168>

---

Data as of 2026-12-06T04:48:48.530Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
