In the Linux kernel, the following vulnerability has been resolved: team: fix promisc/allmulti leak in team_port_add error path team_port_add() increments the port's promiscuity and allmulti counts before calling team_dev_type_check_change(). 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 err_set_slave_allmulti and the allmulti increment under err_set_dev_type, so each error label only reverts what was successfully applied, matching the cleanup performed by team_port_del(). With the promiscuity rollback now living under err_set_slave_allmulti, the inline dev_set_promiscuity(port_dev, -1) in the dev_set_allmulti() failure branch becomes redundant: that branch already jumps to err_set_slave_allmulti, which undoes the promiscuity increment. Drop the inline call to avoid doing it twice. Found by source code audit.
https://git.kernel.org/stable/c/ff618cb00a645f1e3f89068c5fbda3f3a7f4ae63
https://git.kernel.org/stable/c/de93ba920905460596d2c10fb808dfdc6784cdcd
https://git.kernel.org/stable/c/a857fba068ea580c239b0882c71da4d00638b33a
https://git.kernel.org/stable/c/a5e2848d744a8bd9968578a9c309ea600559d654
https://git.kernel.org/stable/c/73d21ec628e7dbf23eca4842667b151b5489fe40
https://git.kernel.org/stable/c/0435eb564a00536d9fd63e618164a5972f9bd7e8