RDMA/mlx4: Prevent shift wrapping in set_user_sq_size()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 839041329fd3410e07d614f81e75bb43367d8f89 · < 196a6df08b08699ace4ce70e1efcdd9081b6565f| No fix yet |
| Linux Linux |
|
|
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()").
From the CVE record · Linux
The Linux kernel’s RDMA/mlx4 set_user_sq_size() function shifts a user-controlled value that can wrap. A local user who can supply that value can trigger the wrapping; the input does not specify further impact or authentication requirements.
Engineers running Linux kernels with RDMA/mlx4 should check their versions against the vendor advisory; affected versions were not provided.