Junglewise Threat Intelligence

CVE-2025-68340: Linux Kernel team driver type confusion in team_port_add

CVE-2025-68340 · Severity: medium · CVSS 5.5 · Published 2025-12-23

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's network 'team' device driver could allow a local user to crash the system. The issue occurs when attempting to add a network interface that is already active to a team group, which causes the system to incorrectly handle internal data structures. This can lead to a system hang or a kernel panic, impacting the availability of the server.

Technical details

A logic error in the team driver's team_port_add function allows team_dev_type_check_change to modify a team device's header_ops (e.g., changing eth_header to ipgre_header) even if the subsequent port addition fails because the port is already in an UP state. When the kernel later attempts to use these modified header_ops, it treats the team device's private data as a different structure type (e.g., struct ip_tunnel), leading to memory corruption and a kernel BUG() or system hang. The fix moves the device type change to the end of the function after all validation checks have passed. This is reachable by a local user with sufficient privileges to manage network interfaces.

Affected products

  • Linux Linux Kernel 3.7 to 5.15.199, 6.1.162, 6.6.123, 6.12.61

Timeline

  • 2025-11-22: disclosed: Initial patch submission
  • 2025-12-23: advisory: CVE-2025-68340 published

References

Related threats