net/mlx5: DR, Fix slab-out-of-bounds in mlx5_cmd_dr_create_fte
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5: DR, Fix slab-out-of-bounds in mlx5_cmd_dr_create_fte
When adding a rule with 32 destinations, we hit the following out-of-band access issue:
BUG: KASAN: slab-out-of-bounds in mlx5_cmd_dr_create_fte+0x18ee/0x1e70
This patch fixes the issue by both increasing the allocated buffers to accommodate for the needed actions and by checking the number of actions to prevent this issue when a rule with too many actions is provided.
From the CVE record · Linux
The Linux kernel's net/mlx5 DR code can access memory out of bounds when a rule with 32 destinations is added. The input does not specify who can add such a rule, whether authentication is needed, or whether user interaction is required.
Engineers running Linux kernels with net/mlx5 DR should check their versions; affected versions are not specified.