Skip to content
OpenAdvisories
High · 7.8 CVE-2025-68340 EUVD-2025-204799GHSA-jmpj-vqww-cqc8

team: Move team device type change at the end of team_port_add

Published Dec 23, 2025 · Updated Oct 16, 2026 · Assigned by Linux

Vendor: Linux Product: Linux Package: kernel Package: linux Package: linux Package: linux-allwinner-5.19 Package: linux-aws Package: linux-aws-5.0 Package: linux-aws-5.11 Package: linux-aws-5.13 Package: linux-aws-5.15 Package: linux-aws-5.19 Package: linux-aws-5.3 Package: linux-aws-5.4 Package: linux-aws-5.8 Package: linux-aws-6.14 Package: linux-aws-6.17 Package: linux-aws-6.2 Package: linux-aws-6.5 Package: linux-aws-6.8 Package: linux-aws-fips Package: linux-aws-hwe Package: linux-azure Package: linux-azure-4.15 Package: linux-azure-5.11 Package: linux-azure-5.13 Package: linux-azure-5.15 Package: linux-azure-5.19 Package: linux-azure-5.3 Package: linux-azure-5.4 Package: linux-azure-5.8 Package: linux-azure-6.11 Package: linux-azure-6.14 Package: linux-azure-6.17 Package: linux-azure-6.2 Package: linux-azure-6.5 Package: linux-azure-6.8 Package: linux-azure-edge Package: linux-azure-fde Package: linux-azure-fde-5.19 Package: linux-azure-fde-6.14 Package: linux-azure-fde-6.2 Package: linux-azure-fde-6.8 Package: linux-azure-fips Package: linux-azure-nvidia Package: linux-azure-nvidia-6.14 Package: linux-bluefield Package: linux-fips Package: linux-gcp Package: linux-gcp-4.15 Package: linux-gcp-5.11 Package: linux-gcp-5.13 Package: linux-gcp-5.15 Package: linux-gcp-5.19 Package: linux-gcp-5.3 Package: linux-gcp-5.4 Package: linux-gcp-5.8 Package: linux-gcp-6.11 Package: linux-gcp-6.14 Package: linux-gcp-6.17 Package: linux-gcp-6.2 Package: linux-gcp-6.5 Package: linux-gcp-6.8 Package: linux-gcp-fips Package: linux-gke Package: linux-gke-4.15 Package: linux-gke-5.15 Package: linux-gke-5.4 Package: linux-gkeop Package: linux-gkeop-5.15 Package: linux-gkeop-5.4 Package: linux-hwe Package: linux-hwe-5.11 Package: linux-hwe-5.13 Package: linux-hwe-5.15 Package: linux-hwe-5.19 Package: linux-hwe-5.4 Package: linux-hwe-5.8 Package: linux-hwe-6.11 Package: linux-hwe-6.14 Package: linux-hwe-6.17 Package: linux-hwe-6.2 Package: linux-hwe-6.5 Package: linux-hwe-6.8 Package: linux-hwe-edge Package: linux-ibm Package: linux-ibm-5.15 Package: linux-ibm-5.4 Package: linux-ibm-6.8 Package: linux-intel-5.13 Package: linux-intel-iot-realtime Package: linux-intel-iotg Package: linux-intel-iotg-5.15 Package: linux-iot Package: linux-kvm Package: linux-lowlatency Package: linux-lowlatency-hwe-5.15 Package: linux-lowlatency-hwe-5.19 Package: linux-lowlatency-hwe-6.11 Package: linux-lowlatency-hwe-6.2 Package: linux-lowlatency-hwe-6.5 Package: linux-lowlatency-hwe-6.8 Package: linux-lts-xenial Package: linux-nvidia Package: linux-nvidia-6.11 Package: linux-nvidia-6.17 Package: linux-nvidia-6.2 Package: linux-nvidia-6.5 Package: linux-nvidia-6.8 Package: linux-nvidia-lowlatency Package: linux-nvidia-tegra Package: linux-nvidia-tegra-5.15 Package: linux-nvidia-tegra-igx Package: linux-oem Package: linux-oem-5.10 Package: linux-oem-5.13 Package: linux-oem-5.14 Package: linux-oem-5.17 Package: linux-oem-5.6 Package: linux-oem-6.0 Package: linux-oem-6.1 Package: linux-oem-6.11 Package: linux-oem-6.14 Package: linux-oem-6.17 Package: linux-oem-6.5 Package: linux-oem-6.8 Package: linux-oracle Package: linux-oracle-5.0 Package: linux-oracle-5.11 Package: linux-oracle-5.13 Package: linux-oracle-5.15 Package: linux-oracle-5.3 Package: linux-oracle-5.4 Package: linux-oracle-5.8 Package: linux-oracle-6.14 Package: linux-oracle-6.17 Package: linux-oracle-6.5 Package: linux-oracle-6.8 Package: linux-raspi Package: linux-raspi-5.4 Package: linux-raspi-realtime Package: linux-raspi2 Package: linux-realtime Package: linux-realtime-6.14 Package: linux-realtime-6.17 Package: linux-realtime-6.8 Package: linux-riscv Package: linux-riscv-5.11 Package: linux-riscv-5.15 Package: linux-riscv-5.19 Package: linux-riscv-5.8 Package: linux-riscv-6.14 Package: linux-riscv-6.17 Package: linux-riscv-6.5 Package: linux-riscv-6.8 Package: linux-starfive-5.19 Package: linux-starfive-6.2 Package: linux-starfive-6.5 Package: linux-vmware Package: linux-xilinx Package: linux-xilinx-zynqmp Platform: Linux Ecosystem: Azure Linux Ecosystem: Debian Ecosystem: Ubuntu

Description

In the Linux kernel, the following vulnerability has been resolved:

team: Move team device type change at the end of team_port_add

Attempting to add a port device that is already up will expectedly fail,
but not before modifying the team device header_ops.

In the case of the syzbot reproducer the gre0 device is
already in state UP when it attempts to add it as a
port device of team0, this fails but before that
header_ops->create of team0 is changed from eth_header to ipgre_header
in the call to team_dev_type_check_change.

Later when we end up in ipgre_header() struct ip_tunnel* points to nonsense
as the private data of the device still holds a struct team.

Example sequence of iproute2 commands to reproduce the hang/BUG():
ip link add dev team0 type team
ip link add dev gre0 type gre
ip link set dev gre0 up
ip link set dev gre0 master team0
ip link set dev team0 up
ping -I team0 1.1.1.1

Move team_dev_type_check_change down where all other checks have passed
as it changes the dev type with no way to restore it in case
one of the checks that follow it fail.

Also make sure to preserve the origial mtu assignment:
- If port_dev is not the same type as dev, dev takes mtu from port_dev
- If port_dev is the same type as dev, port_dev takes mtu from dev

This is done by adding a conditional before the call to dev_set_mtu
to prevent it from assigning port_dev->mtu = dev->mtu and instead
letting team_dev_type_check_change assign dev->mtu = port_dev->mtu.
The conditional is needed because the patch moves the call to
team_dev_type_check_change past dev_set_mtu.

Testing:
- team device driver in-tree selftests
- Add/remove various devices as slaves of team device
- syzbot

Affected products

VendorProductAffectedFixed
Linux Linux 3.7 5.10.259

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 6.17.11-1 —
Debian 13 linux 6.12.63-1 —
Debian 12 linux 6.1.162-1 DSA-6127-1
Debian 11 linux-6.1 6.1.162-1~deb11u1 DLA-4476-1
ReleasePackageFixed inAdvisory
Ubuntu Nvidia-BlueField 24.04 LTS linux-bluefield 6.8.0-1017.21 —
Ubuntu Nvidia-BlueField 22.04 LTS linux-bluefield 5.15.0-1089.91 —
Ubuntu 26.04 LTS linux-vmware No fix yet —
Ubuntu 25.10 linux 6.17.0-19.19 USN-8094-1
Ubuntu 25.10 linux-aws +2 6.17.0-1009.9 USN-8094-1
Ubuntu 25.10 linux-azure +1 6.17.0-1010.10 USN-8094-5, USN-8094-4
Ubuntu 25.10 linux-azure-fde No fix yet —
Ubuntu 25.10 linux-realtime 6.17.0-1008.9 USN-8094-2
Ubuntu 25.10 linux-riscv 6.17.0-19.19.1 —
Ubuntu 24.04 LTS linux 6.8.0-106.106 USN-8095-1
Ubuntu 24.04 LTS linux-aws 6.8.0-1050.53 USN-8095-1
Ubuntu 24.04 LTS linux-aws-6.17 6.17.0-1009.9~24.04.2 USN-8094-1
Ubuntu 24.04 LTS linux-azure 6.8.0-1051.57 USN-8125-1
Ubuntu 24.04 LTS linux-azure-6.17 6.17.0-1010.10~24.04.1 USN-8094-4
Ubuntu 24.04 LTS linux-azure-fde 6.8.0-1058.65 —
Ubuntu 24.04 LTS linux-azure-nvidia 6.8.0-1039.42 —
Ubuntu 24.04 LTS linux-gcp 6.8.0-1052.55 USN-8095-1
Ubuntu 24.04 LTS linux-gcp-6.17 6.17.0-1009.9~24.04.3 USN-8094-2
Ubuntu 24.04 LTS linux-gke 6.8.0-1048.53 USN-8095-1
Ubuntu 24.04 LTS linux-gkeop 6.8.0-1035.38 USN-8095-1
Ubuntu 24.04 LTS linux-hwe-6.17 6.17.0-19.19~24.04.2 USN-8094-1
Ubuntu 24.04 LTS linux-ibm 6.8.0-1049.49 USN-8095-1
Ubuntu 24.04 LTS linux-lowlatency 6.8.0-106.106.1 USN-8095-1
Ubuntu 24.04 LTS linux-nvidia 6.8.0-1049.52 USN-8100-1
Ubuntu 24.04 LTS linux-nvidia-6.17 6.17.0-1018.18 —
Ubuntu 24.04 LTS linux-nvidia-lowlatency 6.8.0-1049.52.1 USN-8100-1
Ubuntu 24.04 LTS linux-nvidia-tegra 6.8.0-1020.20 —
Ubuntu 24.04 LTS linux-oem-6.17 6.17.0-1017.17 USN-8152-1
Ubuntu 24.04 LTS linux-oracle 6.8.0-1047.48 USN-8095-1
Ubuntu 24.04 LTS linux-oracle-6.17 6.17.0-1009.9~24.04.1 USN-8094-1
Ubuntu 24.04 LTS linux-raspi 6.8.0-1050.54 USN-8095-5
Ubuntu 24.04 LTS linux-riscv +18 No fix yet —
Ubuntu 24.04 LTS linux-riscv-6.17 6.17.0-19.19.1~24.04.1 —
Ubuntu 24.04 LTS linux-xilinx 6.8.0-1028.29 USN-8261-1
Show 19 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS linux 5.15.0-176.186 USN-8180-1
Ubuntu 22.04 LTS linux-aws 5.15.0-1105.112 USN-8180-1
Ubuntu 22.04 LTS linux-aws-6.8 6.8.0-1050.53~22.04.1 USN-8095-4
Ubuntu 22.04 LTS linux-azure 5.15.0-1110.119 USN-8180-3
Ubuntu 22.04 LTS linux-azure-6.8 6.8.0-1051.57~22.04.1 USN-8126-1
Ubuntu 22.04 LTS linux-azure-fde 5.15.0-1114.123 —
Ubuntu 22.04 LTS linux-azure-fde-6.8 6.8.0-1058.65~22.04.1 —
Ubuntu 22.04 LTS linux-gcp 5.15.0-1105.114 USN-8180-1
Ubuntu 22.04 LTS linux-gcp-6.8 6.8.0-1052.55~22.04.1 USN-8095-1
Ubuntu 22.04 LTS linux-gke 5.15.0-1101.107 USN-8180-1
Ubuntu 22.04 LTS linux-gkeop 5.15.0-1088.96 USN-8180-1
Ubuntu 22.04 LTS linux-hwe-6.8 +1 6.8.0-106.106~22.04.1 USN-8095-1
Ubuntu 22.04 LTS linux-ibm +1 5.15.0-1099.102 USN-8180-6, USN-8180-5
Ubuntu 22.04 LTS linux-ibm-6.8 6.8.0-1049.49~22.04.1 USN-8095-1
Ubuntu 22.04 LTS linux-intel-iotg 5.15.0-1100.106 USN-8180-3
Ubuntu 22.04 LTS linux-kvm 5.15.0-1097.102 USN-8180-3
Ubuntu 22.04 LTS linux-lowlatency 5.15.0-175.185 USN-8180-1
Ubuntu 22.04 LTS linux-lowlatency-hwe-6.8 6.8.0-106.106.1~22.04.1 USN-8095-1
Ubuntu 22.04 LTS linux-nvidia 5.15.0-1100.101 USN-8180-1
Ubuntu 22.04 LTS linux-nvidia-6.8 6.8.0-1049.52~22.04.1 USN-8100-1
Ubuntu 22.04 LTS linux-nvidia-tegra 5.15.0-1057.57 USN-8187-1
Ubuntu 22.04 LTS linux-nvidia-tegra-igx 5.15.0-1046.46 USN-8187-1
Ubuntu 22.04 LTS linux-oracle 5.15.0-1102.108 USN-8180-1
Ubuntu 22.04 LTS linux-oracle-6.8 6.8.0-1047.48~22.04.1 USN-8095-1
Ubuntu 22.04 LTS linux-riscv +32 No fix yet —
Ubuntu 22.04 LTS linux-xilinx-zynqmp 5.15.0-1070.74 USN-8275-1
Ubuntu 20.04 LTS linux-gke +28 No fix yet —
Ubuntu 18.04 LTS linux-gcp +14 No fix yet —
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
Ubuntu Pro Realtime 24.04 LTS linux-raspi-realtime 6.8.0-2040.41 USN-8095-5
Ubuntu Pro Realtime 24.04 LTS linux-realtime 6.8.1-1045.46 USN-8095-3
Ubuntu Pro Realtime 24.04 LTS linux-realtime-6.14 No fix yet —
Ubuntu Pro Realtime 24.04 LTS linux-realtime-6.17 6.17.0-1008.9~24.04.1 USN-8094-3
Ubuntu Pro Realtime 22.04 LTS linux-intel-iot-realtime 5.15.0-1097.99 USN-8186-1
Ubuntu Pro Realtime 22.04 LTS linux-realtime 5.15.0-1104.113 USN-8186-1
Ubuntu Pro Realtime 22.04 LTS linux-realtime-6.8 6.8.1-1045.46~22.04.1 USN-8095-3
Ubuntu Pro FIPS 20.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS 18.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS 16.04 LTS linux-fips No fix yet —
Ubuntu Pro FIPS-updates 24.04 LTS linux-aws-fips 6.8.0-1050.53+fips1 USN-8095-2
Ubuntu Pro FIPS-updates 24.04 LTS linux-azure-fips 6.8.0-1052.58+fips1 USN-8165-1
Ubuntu Pro FIPS-updates 24.04 LTS linux-fips 6.8.0-106.106+fips1 USN-8095-2
Ubuntu Pro FIPS-updates 24.04 LTS linux-gcp-fips 6.8.0-1052.55+fips1 USN-8095-2
Ubuntu Pro FIPS-updates 22.04 LTS linux-aws-fips 5.15.0-1105.112+fips1 —
Ubuntu Pro FIPS-updates 22.04 LTS linux-azure-fips 5.15.0-1110.119+fips1 USN-8180-4
Ubuntu Pro FIPS-updates 22.04 LTS linux-fips 5.15.0-176.186+fips1 USN-8180-2
Ubuntu Pro FIPS-updates 22.04 LTS linux-gcp-fips 5.15.0-1105.114+fips1 USN-8180-2
Ubuntu Pro FIPS-updates 20.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS-updates 18.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS-updates 16.04 LTS linux-fips No fix yet —
Ubuntu Pro FIPS-preview 22.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro 20.04 LTS linux +10 No fix yet —
Ubuntu Pro 20.04 LTS linux-aws-5.15 5.15.0-1105.112~20.04.1 USN-8180-1
Ubuntu Pro 20.04 LTS linux-azure-5.15 5.15.0-1110.119~20.04.1 USN-8243-1
Ubuntu Pro 20.04 LTS linux-gcp-5.15 5.15.0-1106.115~20.04.1 USN-8297-1
Ubuntu Pro 20.04 LTS linux-hwe-5.15 5.15.0-176.186~20.04.1 USN-8188-1
Ubuntu Pro 20.04 LTS linux-ibm-5.15 5.15.0-1099.102~20.04.1 USN-8180-5
Ubuntu Pro 20.04 LTS linux-intel-iotg-5.15 5.15.0-1100.106~20.04.1 USN-8180-3
Ubuntu Pro 20.04 LTS linux-lowlatency-hwe-5.15 5.15.0-175.185~20.04.1 USN-8180-1
Ubuntu Pro 20.04 LTS linux-nvidia-tegra-5.15 5.15.0-1057.57~20.04.1 USN-8162-1
Ubuntu Pro 20.04 LTS linux-oracle-5.15 5.15.0-1102.108~20.04.1 USN-8180-3
Ubuntu Pro 20.04 LTS linux-riscv-5.15 5.15.0-1099.103~20.04.1 —
Ubuntu Pro 18.04 LTS linux +12 No fix yet —
Ubuntu Pro 16.04 LTS linux +7 No fix yet —
Ubuntu Pro 14.04 LTS linux +3 No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 kernel-64kb +6 6.4.0-150700.53.28.1 SUSE-SU-2026:0315-1
SLES 15 SP7 kernel-azure +2 6.4.0-150700.20.24.1 SUSE-SU-2026:0281-1
SLES 15 SP7 kernel-default-base 6.4.0-150700.53.28.1.150700.17.19.1 SUSE-SU-2026:0315-1
SLES 12 SP5 kernel-syms +2 4.12.14-122.290.1 SUSE-SU-2026:0316-1
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 kernel-64kb +8 6.12.0-160000.9.1 SUSE-SU-2026:20220-1
SLES for SAP 16.0 kernel-default-base 6.12.0-160000.9.1.160000.2.6 SUSE-SU-2026:20220-1
SLES 16.0 kernel-64kb +8 6.12.0-160000.9.1 SUSE-SU-2026:20228-1, SUSE-SU-2026:20220-1
SLES 16.0 kernel-default-base 6.12.0-160000.9.1.160000.2.6 SUSE-SU-2026:20220-1
SLE Micro 6.2 kernel-default-base 6.12.0-160000.9.1.160000.2.6 SUSE-SU-2026:20207-1
SLE Micro 6.2 kernel-rt +5 6.12.0-160000.9.1 SUSE-SU-2026:20564-1, SUSE-SU-2026:20207-1
SLE Micro 6.1 kernel-default-base 6.4.0-39.1.21.16 SUSE-SU-2026:20498-1
SLE Micro 6.1 kernel-rt +1 6.4.0-40.1 SUSE-SU-2026:20876-1
SLE Micro 6.1 kernel-source +2 6.4.0-39.1 SUSE-SU-2026:20498-1
SLE Micro 6.0 kernel-default-base 6.4.0-39.1.21.16 SUSE-SU-2026:20477-1
SLE Micro 6.0 kernel-rt +1 6.4.0-40.1 SUSE-SU-2026:20845-1
SLE Micro 6.0 kernel-source +2 6.4.0-39.1 SUSE-SU-2026:20477-1
SLE Live Patching 15 SP7 kernel-default 6.4.0-150700.53.28.1 SUSE-SU-2026:0315-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7-RT_Update_8 1-150700.1.3.1 SUSE-SU-2026:0278-1
SLE Live Patching 15 SP7 kernel-livepatch-SLE15-SP7_Update_8 1-150700.15.3.1 SUSE-SU-2026:0315-1
SLE Live Patching 12 SP5 kernel-default 4.12.14-122.290.1 SUSE-SU-2026:0316-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_76 1-8.7.1 SUSE-SU-2026:0316-1
SUSE Real Time Module 15 SP7 kernel-rt +2 6.4.0-150700.7.28.1 SUSE-SU-2026:0278-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 kernel-default-base 6.12.0-160000.9.1.160000.2.6 openSUSE-SU-2026:20145-1
openSUSE Leap 16.0 kernel-rt +11 6.12.0-160000.9.1 openSUSE-SU-2026:20145-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 kernel-livepatch-6.12.63-84.121 +1 1:1.0-0.amzn2023 ALAS2023-2026-1468, ALAS2023-2026-1430
Amazon Linux 2023 perf +14 1:6.1.163-186.299.amzn2023 ALAS2023-2026-1468
Amazon Linux 2023 perf6.12 +14 1:6.12.63-84.121.amzn2023 ALAS2023-2026-1430

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) kernel 5.15.200.1-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 kernel-uek +34 6.12.0-108.64.6.3.el10uek ELSA-2026-50112

Advisories 48

References