CVE-2026-139241: team: reject CAN, IEEE 802.15.4 and 6LoWPAN devices in team_port_add
In the Linux kernel, the following vulnerability has been resolved:
team: reject CAN, IEEE 802.15.4 and 6LoWPAN devices in teamportadd
When the first port has a non-Ethernet type, teamsetupbyport() copies portdev->type to the team device while netdevpriv() of the team device still holds a struct team. Several L2 stacks identify their devices by dev->type alone and then access type specific data that the team driver never sets up:
- CAN protocols rely on the CAN mid-layer private data (mlpriv) - IEEE 802.15.4 code dereferences ieee802154ptr and the mlme ops in mlpriv - the 6LoWPAN netdev notifier writes through lowpandev(dev) on NETDEVDOWN and reads it on NETDEVUP/NETDEVCHANGE
Enslaving such a device (e.g. vxcan, wpan0, lowpan0) therefore leads to NULL pointer dereferences or to writes into struct team.
This is the same problem that syzbot reported for the bonding driver with a vxcan device enslaved to a bond master, which crashed in canrxunregister() and was fixed by commit 8ba68464e478 ("bonding: refuse to enslave CAN devices"). The team driver has the same gap.
Reject ARPHRDCAN, ARPHRDIEEE802154, ARPHRDIEEE802154MONITOR and ARPHRD6LOWPAN devices in teamportadd().
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.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In team_port_add(), reject ARPHRD_CAN, ARPHRD_IEEE802154, ARPHRD_IEEE802154_MONITOR, and ARPHRD_6LOWPAN devices.
Event History
Frequently Asked Questions
What access or configuration is needed to trigger the issue?
An affected non-Ethernet device must be enslaved as the first port of a team device. Examples given are vxcan, wpan0, and lowpan0.
Which device types should not be added to a team device until the fix is present?
Avoid adding CAN, IEEE 802.15.4, IEEE 802.15.4 monitor, and 6LoWPAN devices. The affected hardware types are ARPHRD_CAN, ARPHRD_IEEE802154, ARPHRD_IEEE802154_MONITOR, and ARPHRD_6LOWPAN.
What can happen on an affected system?
The configuration can cause NULL-pointer dereferences or writes into the team driver's struct team memory. The described failures occur because L2 stack code treats the team device as the enslaved device type without the corresponding type-specific state being initialized.