Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
f82d1fb65549de241fe312fcb2bcb8e0ad7b424d to < 0435eb564a00536d9fd63e618164a5972f9bd7e8affectedc8b15b0d2eec3b5c7f585e5a53dfc8d36c818283 to < 73d21ec628e7dbf23eca4842667b151b5489fe40affected4040b5e8963982a00aa821300cb746efc9f2947e to < a857fba068ea580c239b0882c71da4d00638b33aaffected0ae9cfc454ea5ead5f3ddbdfe2e70270d8e2c8ef to < a5e2848d744a8bd9968578a9c309ea600559d654affected0ae9cfc454ea5ead5f3ddbdfe2e70270d8e2c8ef to < de93ba920905460596d2c10fb808dfdc6784cdcdaffected0ae9cfc454ea5ead5f3ddbdfe2e70270d8e2c8ef to < ff618cb00a645f1e3f89068c5fbda3f3a7f4ae63affecteda74ab1b532ecc5f9106621a8f75b4c3d04466b35affectede26235840fd961e4ebe5568f11a2a078cf726663affectede3eed4f038214494af62c7d2d64749e5108ce6caaffected5.10.259 to < 5.10.276affected5.15.199 to < 5.15.227affected6.12.61 to < 6.12.120affected6.1.162 to < 6.2affected6.6.123 to < 6.7affected6.17.11 to < 6.18affected
Linux Linux
Default version status: affected
6.18affected0 to < 6.18unaffected5.10.276 to ≤ 5.10.*unaffected5.15.227 to ≤ 5.15.*unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/0435eb564a00536d9fd63e618164a5972f9bd7e8 ↗
- https://git.kernel.org/stable/c/73d21ec628e7dbf23eca4842667b151b5489fe40 ↗
- https://git.kernel.org/stable/c/a857fba068ea580c239b0882c71da4d00638b33a ↗
- https://git.kernel.org/stable/c/a5e2848d744a8bd9968578a9c309ea600559d654 ↗
- https://git.kernel.org/stable/c/de93ba920905460596d2c10fb808dfdc6784cdcd ↗
- https://git.kernel.org/stable/c/ff618cb00a645f1e3f89068c5fbda3f3a7f4ae63 ↗