net/mlx5: LAG, Fix off-by-one in single-FDB error rollback
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.14
|
In the Linux kernel, the following vulnerability has been resolved:
net/mlx5: LAG, Fix off-by-one in single-FDB error rollback
On failure at index i, the reverse cleanup loop in mlx5_lag_create_single_fdb() starts from i, so the failed index itself is rolled back. That can operate on uninitialized state or double-tear-down a rule the add_one path already self-rolled-back.
Start the rollback from i - 1 so only successfully-installed entries are undone.
From the CVE record · Linux
An off-by-one error in mlx5_lag_create_single_fdb() can make error cleanup operate on uninitialized state or tear down a rule twice after an add operation fails. The input does not establish how an attacker could trigger the failure or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with net/mlx5 LAG should check their versions against the vendor advisory; affected versions were not provided.