A vulnerability in the Linux kernel's team driver caused a leak of promiscuous and all-multicast mode settings when an error occurred during the addition of a port to a team. The increments to promiscuity and allmulti counts were not properly undone on failure, leaving the port in an unintended state. This issue was identified and fixed by adjusting the error handling to correctly revert these increments, ensuring consistent cleanup.