CVE-2026-143221: team: fix promisc/allmulti leak in team_port_add error path
In the Linux kernel, the following vulnerability has been resolved:
team: fix promisc/allmulti leak in teamportadd error path
teamportadd() increments the port's promiscuity and allmulti counts before calling teamdevtypecheckchange(). If the latter fails, the error path does not undo these increments, leaving the port in promiscuous and allmulti mode even though it was not successfully added to the team.
Undo the promiscuity increment under errsetslaveallmulti and the allmulti increment under errsetdevtype, so each error label only reverts what was successfully applied, matching the cleanup performed by teamportdel().
With the promiscuity rollback now living under errsetslaveallmulti, the inline devsetpromiscuity(portdev, -1) in the devsetallmulti() failure branch becomes redundant: that branch already jumps to errsetslaveallmulti, which undoes the promiscuity increment. Drop the inline call to avoid doing it twice.
Found by source code audit.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.276 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.227 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.2 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.7 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7
Event History
Frequently Asked Questions
When can this issue be triggered?
It is triggered when team_port_add() has increased a prospective team port's promiscuity and all-multicast counts, then team_dev_type_check_change() fails. The port was not successfully added to the team, but its mode counts may remain elevated.
How can an administrator recognize the affected state?
After a failed attempt to add a port to a team device, the port may remain in promiscuous and all-multicast mode. This state is unexpected because the port was not successfully added to the team.