{"id":"CVE-2026-31502","aliases":["CVE-2026-31502"],"related":[],"kind":"vulnerability","state":"published","title":"team: fix header_ops type confusion with non-Ethernet ports","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nteam: corrige la confusión de tipo de header_ops con puertos que no son Ethernet\n\nSimilar al commit 950803f72547 (’bonding: corrige la confusión de tipo en bond_setup_by_slave()’), team tiene la misma clase de confusión de tipo de header_ops.\n\nPara puertos que no son Ethernet, team_setup_by_port() copia port_dev  ->  header_ops directamente. Cuando el dispositivo team llama más tarde a dev_hard_header() o dev_parse_header(), estas devoluciones de llamada pueden ejecutarse con el net_device del team en lugar del dispositivo inferior real, por lo que netdev_priv(dev) se interpreta como el tipo privado incorrecto y puede causar un fallo.\n\nEl informe de syzbot muestra un fallo en bond_header_create(), pero la causa raíz está en team: la topología es gre   ->   bond   ->   team, y team llama a los header_ops heredados con su propio net_device en lugar del dispositivo inferior, por lo que bond_header_create() recibe un dispositivo team e interpreta netdev_priv() como datos privados de bonding, causando un fallo por confusión de tipo.\n\nSoluciona esto introduciendo envoltorios de header_ops de team para create/parse, seleccionando un puerto de team bajo RCU, y llamando a las devoluciones de llamada del dispositivo inferior con port  ->  dev, para que cada devolución de llamada siempre vea el contexto net_device correcto.\n\nTambién pasa el dispositivo inferior seleccionado a la devolución de llamada de análisis inferior, para que la recursión esté limitada en topologías apiladas que no son Ethernet y las devoluciones de llamada de análisis siempre se ejecuten con el contexto de dispositivo correcto.","source":"nvd"}],"published":"2026-04-22T13:54:22.481Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-843"],"affected":[{"ranges":[{"type":"git","introduced":"1d76efe1577b4323609b1bcbfafa8b731eda071a","fixed":"c6e255b0ce30cdea37e34d6d87e2212eb8c7f7a4","status":"affected"},{"type":"git","introduced":"1d76efe1577b4323609b1bcbfafa8b731eda071a","fixed":"420e5aad7ba89e8f79e2dc8327b0c0c24c1c1d53","status":"affected"},{"type":"git","introduced":"1d76efe1577b4323609b1bcbfafa8b731eda071a","fixed":"6d3161fa3eee64d46b766fb0db33ec7f300ef52d","status":"affected"},{"type":"git","introduced":"1d76efe1577b4323609b1bcbfafa8b731eda071a","fixed":"0a7468ed49a6b65d34abcc6eb60e15f7f6d34da0","status":"affected"},{"type":"git","introduced":"1d76efe1577b4323609b1bcbfafa8b731eda071a","fixed":"20491d384d973a63fbdaf7a71e38d69b0659ea55","status":"affected"},{"type":"git","introduced":"1d76efe1577b4323609b1bcbfafa8b731eda071a","fixed":"425000dbf17373a4ab8be9428f5dc055ef870a56","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.7","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.145","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.80","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.21","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.11","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.7.1","fixed":"6.12.80"},{"status":"affected","introduced":"6.13","fixed":"6.18.21"},{"status":"affected","introduced":"6.19","fixed":"6.19.11"},{"status":"affected","version":"3.7"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c6e255b0ce30cdea37e34d6d87e2212eb8c7f7a4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/420e5aad7ba89e8f79e2dc8327b0c0c24c1c1d53","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6d3161fa3eee64d46b766fb0db33ec7f300ef52d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0a7468ed49a6b65d34abcc6eb60e15f7f6d34da0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/20491d384d973a63fbdaf7a71e38d69b0659ea55","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/425000dbf17373a4ab8be9428f5dc055ef870a56","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:10:14.938Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31502","url":"https://www.cve.org/CVERecord?id=CVE-2026-31502","licence":"CVE Terms of Use","modified":"2026-10-30T12:24:17.203Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31502","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31502","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.297Z","epss":{"score":0.00135,"percentile":0.03167,"date":"2026-12-01T12:00:22.000Z"}}