{"id":"CVE-2026-31502","published":"2026-04-22T13:54:22Z","modified":"2026-10-30T12:24:17Z","title":"team: fix header_ops type confusion with non-Ethernet ports","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nteam: fix header_ops type confusion with non-Ethernet ports\n\nSimilar to commit 950803f72547 (\"bonding: fix type confusion in\nbond_setup_by_slave()\") team has the same class of header_ops type\nconfusion.\n\nFor non-Ethernet ports, team_setup_by_port() copies port_dev->header_ops\ndirectly. When the team device later calls dev_hard_header() or\ndev_parse_header(), these callbacks can run with the team net_device\ninstead of the real lower device, so netdev_priv(dev) is interpreted as\nthe wrong private type and can crash.\n\nThe syzbot report shows a crash in bond_header_create(), but the root\ncause is in team: the topology is gre -> bond -> team, and team calls\nthe inherited header_ops with its own net_device instead of the lower\ndevice, so bond_header_create() receives a team device and interprets\nnetdev_priv() as bonding private data, causing a type confusion crash.\n\nFix this by introducing team header_ops wrappers for create/parse,\nselecting a team port under RCU, and calling the lower device callbacks\nwith port->dev, so each callback always sees the correct net_device\ncontext.\n\nAlso pass the selected lower device to the lower parse callback, so\nrecursion is bounded in stacked non-Ethernet topologies and parse\ncallbacks always run with the correct device context.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00183,"percentile":0.04597,"provenance":"source"},"cwes":[{"id":"CWE-843","name":"Access of Resource Using Incompatible Type"}],"references":[{"url":"https://git.kernel.org/stable/c/c6e255b0ce30cdea37e34d6d87e2212eb8c7f7a4","tags":[]},{"url":"https://git.kernel.org/stable/c/420e5aad7ba89e8f79e2dc8327b0c0c24c1c1d53","tags":[]},{"url":"https://git.kernel.org/stable/c/6d3161fa3eee64d46b766fb0db33ec7f300ef52d","tags":[]},{"url":"https://git.kernel.org/stable/c/0a7468ed49a6b65d34abcc6eb60e15f7f6d34da0","tags":[]},{"url":"https://git.kernel.org/stable/c/20491d384d973a63fbdaf7a71e38d69b0659ea55","tags":[]},{"url":"https://git.kernel.org/stable/c/425000dbf17373a4ab8be9428f5dc055ef870a56","tags":[]}],"priority":{"score":6.4,"factors":[{"name":"EPSS percentile","points":0.92},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 1d76efe1577b4323609b1bcbfafa8b731eda071a, < c6e255b0ce30cdea37e34d6d87e2212eb8c7f7a4",">= 1d76efe1577b4323609b1bcbfafa8b731eda071a, < 420e5aad7ba89e8f79e2dc8327b0c0c24c1c1d53",">= 1d76efe1577b4323609b1bcbfafa8b731eda071a, < 6d3161fa3eee64d46b766fb0db33ec7f300ef52d",">= 1d76efe1577b4323609b1bcbfafa8b731eda071a, < 0a7468ed49a6b65d34abcc6eb60e15f7f6d34da0",">= 1d76efe1577b4323609b1bcbfafa8b731eda071a, < 20491d384d973a63fbdaf7a71e38d69b0659ea55",">= 1d76efe1577b4323609b1bcbfafa8b731eda071a, < 425000dbf17373a4ab8be9428f5dc055ef870a56"]},{"vendor":"Linux","product":"Linux","versions":["3.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-16T15:10:14.938095Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-24879","exploited":false,"provenance":"source"}}