← CVE Intelligence

CVE-2023-54168

RDMA/mlx4: Prevent shift wrapping in set_user_sq_size() PUBLISHED

Description (CNA)

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

Affected (CNA)

Vendor / productVersions
Linux / Linuxaffected 839041329fd3410e07d614f81e75bb43367d8f89 before 3d5ae269c4bd392ec1edbfb3bd031b8f42d7feff; affected 839041329fd3410e07d614f81e75bb43367d8f89 before 8feca625900777e02a449e53fe4121339934c38a; affected 839041329fd3410e07d614f81e75bb43367d8f89 before 9ad3221c86cc9c6305594b742d4a72dfbd4ea579; affected 839041329fd3410e07d614f81e75bb43367d8f89 before 9911be2155720221a4f1f722b22bd0e2388d8bcf; affected 839041329fd3410e07d614f81e75bb43367d8f89 before 3ce0df3493277b9df275cb8455d9c677ae701230; affected 839041329fd3410e07d614f81e75bb43367d8f89 before 196a6df08b08699ace4ce70e1efcdd9081b6565f; affected 839041329fd3410e07d614f81e75bb43367d8f89 before a183905869e692b6b7805b7472235585eff8e429; affected 839041329fd3410e07d614f81e75bb43367d8f89 before d50b3c73f1ac20dabc53dc6e9d64ce9c79a331eb
Linux / Linuxaffected 2.6.24; unaffected 0 before 2.6.24; unaffected 4.19.283 through 4.19.*; unaffected 5.4.243 through 5.4.*; unaffected 5.10.180 through 5.10.*; unaffected 5.15.111 through 5.15.*; unaffected 6.1.28 through 6.1.*; unaffected 6.2.15 through 6.2.*; unaffected 6.3.2 through 6.3.*; unaffected 6.4 through *

CWE

No CWE identifiers supplied.

References

ADP enrichment

CISA-ADP

No English description supplied.

No references supplied.