CVE-2026-72345: net/mlx5: LAG, Fix off-by-one in single-FDB error rollback
From: Greg Kroah-Hartman <[email protected]>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2026-72345 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.14 with commit ddbb5ddc43ad000a984149db5af1133433938404 and fixed in 7.1.5 with commit 40cc06bf71476932e5d139fa326dcd0372766e16 Issue introduced in 6.14 with commit ddbb5ddc43ad000a984149db5af1133433938404 and fixed in 7.2-rc3 with commit 0f0e4ae6975c773f7854fc48932a267f6c79088f
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-72345
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/ethernet/mellanox/mlx5/core/lag/shared_fdb.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/40cc06bf71476932e5d139fa326dcd0372766e16 https://git.kernel.org/stable/c/0f0e4ae6975c773f7854fc48932a267f6c79088f