VDB

CVE-2025-68340

CVE-2025-68340 PUBLISHED CVSS 7.8 HIGH

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

Reported by linux · Published December 23, 2025

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

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-modules-extra-commonAmazon Linux1:6.1.163-186.299.amzn2023
kernel6.12-headersAmazon Linux1:6.12.63-84.121.amzn2023
bpftool6.12Amazon Linux1:6.12.63-84.121.amzn2023
kernel-toolsAmazon Linux1:6.1.163-186.299.amzn2023
kernel-libbpf-develAmazon Linux1:6.1.163-186.299.amzn2023
kernel6.12-libbpf-develAmazon Linux1:6.12.63-84.121.amzn2023
kernel6.12-libbpfAmazon Linux1:6.12.63-84.121.amzn2023
kernel6.12-modules-extraAmazon Linux1:6.12.63-84.121.amzn2023
bpftoolAmazon Linux1:6.1.163-186.299.amzn2023
linux_kernellinux6.17.11, 6.12.61, 6.6.123, 6.1.162, 5.15.199
LinuxLinuxc8b15b0d2eec3b5c7f585e5a53dfc8d36c818283, 3.7

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux1d76efe1577b4323609b1bcbfafa8b731eda071a, 1d76efe1577b4323609b1bcbfafa8b731eda071a, 1d76efe1577b4323609b1bcbfafa8b731eda071a
LinuxLinux3.7, 0, 5.10.259
amazon:2023kernel-modules-extra-common0
amazon:2023kernel6.12-headers0
amazon:2023bpftool6.120
amazon:2023kernel-tools0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel6.12-libbpf-devel0
amazon:2023kernel6.12-libbpf0
amazon:2023kernel6.12-modules-extra0
amazon:2023bpftool0
LinuxLinux5.15.199, 6.6.123, 5.10.259
amazon:2023kernel-livepatch-6.12.63-84.1210
amazon:2023kernel-tools-devel0
amazon:2023kernel6.12-tools0
linuxlinux_kernel3.7, 3.7, 3.7
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel-headers0
amazon:2023perf6.120
amazon:2023kernel-libbpf-static0

…and 12 more

Timeline

  • Dec 23, 2025 CVE Published
  • Dec 24, 2025 EPSS Score (30 in total, the first dated here)
  • Feb 11, 2026 Security Advisory (105 in total, the first dated here)
  • Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (101 in total, the first dated here)
  • Sep 3, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-68340
vulnetix vdb fixes CVE-2025-68340

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-68340/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›