CVE-2025-39733: team: replace team lock with rtnl lock
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
team: replace team lock with rtnl lock
syszbot reports various ordering issues for lower instance locks and team lock. Switch to using rtnl lock for protecting team device, similar to bonding. Based on the patch by Tetsuo Handa.
The Linux kernel CVE team has assigned CVE-2025-39733 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.15 with commit 6b1d3c5f675cc794a015138b115afff172fb4c58 and fixed in 6.15.10 with commit 556a4337ba3e9a70e1e3a428e8465c3ea3c4aa41 Issue introduced in 6.15 with commit 6b1d3c5f675cc794a015138b115afff172fb4c58 and fixed in 6.16.1 with commit 53edc761c9911f597b6d701e846f6e84f15eaa6d Issue introduced in 6.15 with commit 6b1d3c5f675cc794a015138b115afff172fb4c58 and fixed in 6.17-rc1 with commit bfb4fb77f9a8ce33ce357224569eae5564eec573
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-2025-39733
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/team/team_core.c
drivers/net/team/team_mode_activebackup.c
drivers/net/team/team_mode_loadbalance.c
include/linux/if_team.h
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/556a4337ba3e9a70e1e3a428e8465c3ea3c4aa41 https://git.kernel.org/stable/c/53edc761c9911f597b6d701e846f6e84f15eaa6d https://git.kernel.org/stable/c/bfb4fb77f9a8ce33ce357224569eae5564eec573