CVE-2025-68340: team: Move team device type change at the end of team_port_add

Published Dec 23, 2025
·
Updated

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

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

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

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 headerops->create of team0 is changed from ethheader to ipgreheader in the call to teamdevtypecheckchange.

Later when we end up in ipgreheader() struct iptunnel 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 teamdevtypecheckchange 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 portdev is not the same type as dev, dev takes mtu from portdev - If portdev is the same type as dev, portdev takes mtu from dev

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

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

Affected Software

15 affected componentsFixes available
linux/kernel
Microsoft azl3 kernel 6.6.117.1-1
Linux Linux kernel>=3.7<5.15.199
Linux Linux kernel>=5.16<6.1.162
Linux Linux kernel>=6.2<6.6.123
Linux Linux kernel>=6.7<6.12.61
Linux Linux kernel>=6.13<6.17.11
Linux Linux kernel=6.18-rc1
Linux Linux kernel=6.18-rc2
Linux Linux kernel=6.18-rc3
Linux Linux kernel=6.18-rc4
Linux Linux kernel=6.18-rc5
Linux Linux kernel=6.18-rc6
Linux Linux kernel=6.18-rc7
Microsoft cbl2 kernel 5.15.186.1-1

Event History

Dec 23, 2025
CVE Published
via MITRE·01:58 PM
Data Sourced
via MITRE·01:58 PM
DescriptionSeverity
Data Sourced
via NVD·02:16 PM
RemedyDescriptionSeverityAffected Software
Dec 24, 2025
Data Sourced
via Microsoft·01:04 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·09:04 AM
DescriptionSeverity
Updated
via Microsoft·09:04 AM
SeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-68340?

CVE-2025-68340 is classified as a medium severity vulnerability in the Linux kernel.

2

How do I fix CVE-2025-68340?

To mitigate CVE-2025-68340, update your Linux kernel to the latest stable version that includes the fix.

3

What systems are affected by CVE-2025-68340?

CVE-2025-68340 affects versions of the Linux kernel that have the team device feature implemented.

4

What type of vulnerability is CVE-2025-68340?

CVE-2025-68340 is a vulnerability related to improper handling during the addition of a port device in Linux team devices.

5

Is there a known exploitation method for CVE-2025-68340?

As of now, there's no public knowledge of active exploitation methods for CVE-2025-68340.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203