net/mlx5: Collect command failures data only for known commands
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.1.316.3.56.4In the Linux kernel, the following vulnerability has been resolved:
net/mlx5: Collect command failures data only for known commands
DEVX can issue a general command, which is not used by mlx5 driver. In case such command is failed, mlx5 is trying to collect the failure data, However, mlx5 doesn't create a storage for this command, since mlx5 doesn't use it. This lead to array-index-out-of-bounds error.
Fix it by checking whether the command is known before collecting the failure data.
From the CVE record · Linux
The Linux kernel’s net/mlx5 driver can access an array out of bounds when a DEVX general command unknown to the driver fails and the driver tries to collect failure data. An attacker able to issue such a command could trigger the error; the input does not specify the access or authentication required.
Engineers running Linux kernels with the net/mlx5 driver should check their versions against the vendor advisory; affected versions are not specified.