Skip to main content
← All vulnerabilities
CVE-2023-54168

RDMA/mlx4: Prevent shift wrapping in set_user_sq_size()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.19.283, 5.4.243, 5.10.180, 5.15.111, 6.1.28, and 2 more
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • Linux 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 Linux

    2.6.24

  • KernelLinux

    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

References 8

git.kernel.org