net/mlx5: HWS, fix definer's HWS_SET32 macro for negative offset
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.12.136.13.26.14In the Linux kernel, the following vulnerability has been resolved:
net/mlx5: HWS, fix definer's HWS_SET32 macro for negative offset
When bit offset for HWS_SET32 macro is negative, UBSAN complains about the shift-out-of-bounds:
UBSAN: shift-out-of-bounds in drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c:177:2 shift exponent -8 is negative
From the CVE record · Linux
The Linux kernel's net/mlx5 HWS definer has a shift-out-of-bounds issue when the HWS_SET32 macro receives a negative bit offset. UBSAN reports a negative shift exponent in this case. The input does not establish how an attacker could trigger it or whether access or user interaction is required.
Engineers running the Linux kernel with net/mlx5 HWS should check their installations; affected versions were not provided.