# CVE-2026-31502: team: fix header\_ops type confusion with non-Ethernet ports

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 5, 2026-11-26)
- **CWE:** CWE-843
- **Published:** 2026-04-22T13:54:22.481Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= 1d76efe1577b4323609b1bcbfafa8b731eda071a, \< c6e255b0ce30cdea37e34d6d87e2212eb8c7f7a4; \>= 1d76efe1577b4323609b1bcbfafa8b731eda071a, \< 420e5aad7ba89e8f79e2dc8327b0c0c24c1c1d53; \>= 1d76efe1577b4323609b1bcbfafa8b731eda071a, \< 6d3161fa3eee64d46b766fb0db33ec7f300ef52d; \>= 1d76efe1577b4323609b1bcbfafa8b731eda071a, \< 0a7468ed49a6b65d34abcc6eb60e15f7f6d34da0; \>= 1d76efe1577b4323609b1bcbfafa8b731eda071a, \< 20491d384d973a63fbdaf7a71e38d69b0659ea55; \>= 1d76efe1577b4323609b1bcbfafa8b731eda071a, \< 425000dbf17373a4ab8be9428f5dc055ef870a56
- Anyone running Linux 3.7

## Description

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

team: fix header\_ops type confusion with non-Ethernet ports

Similar to commit 950803f72547 ("bonding: fix type confusion in
bond\_setup\_by\_slave()") team has the same class of header\_ops type
confusion.

For non-Ethernet ports, team\_setup\_by\_port() copies port\_dev-\>header\_ops
directly. When the team device later calls dev\_hard\_header() or
dev\_parse\_header(), these callbacks can run with the team net\_device
instead of the real lower device, so netdev\_priv(dev) is interpreted as
the wrong private type and can crash.

The syzbot report shows a crash in bond\_header\_create(), but the root
cause is in team: the topology is gre -\> bond -\> team, and team calls
the inherited header\_ops with its own net\_device instead of the lower
device, so bond\_header\_create() receives a team device and interprets
netdev\_priv() as bonding private data, causing a type confusion crash.

Fix this by introducing team header\_ops wrappers for create/parse,
selecting a team port under RCU, and calling the lower device callbacks
with port-\>dev, so each callback always sees the correct net\_device
context.

Also pass the selected lower device to the lower parse callback, so
recursion is bounded in stacked non-Ethernet topologies and parse
callbacks always run with the correct device context.

## Affected and fixed versions

- Linux: \>= 1d76efe1577b4323609b1bcbfafa8b731eda071a, \< c6e255b0ce30cdea37e34d6d87e2212eb8c7f7a4; \>= 1d76efe1577b4323609b1bcbfafa8b731eda071a, \< 420e5aad7ba89e8f79e2dc8327b0c0c24c1c1d53; \>= 1d76efe1577b4323609b1bcbfafa8b731eda071a, \< 6d3161fa3eee64d46b766fb0db33ec7f300ef52d; \>= 1d76efe1577b4323609b1bcbfafa8b731eda071a, \< 0a7468ed49a6b65d34abcc6eb60e15f7f6d34da0; \>= 1d76efe1577b4323609b1bcbfafa8b731eda071a, \< 20491d384d973a63fbdaf7a71e38d69b0659ea55; \>= 1d76efe1577b4323609b1bcbfafa8b731eda071a, \< 425000dbf17373a4ab8be9428f5dc055ef870a56 (cvelist)
- Linux: 3.7 (cvelist)

## Mitigation

- Upgrade Linux to 425000dbf17373a4ab8be9428f5dc055ef870a56 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-31502. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31502.md
Affected: Linux >= 1d76efe1577b4323609b1bcbfafa8b731eda071a, < c6e255b0ce30cdea37e34d6d87e2212eb8c7f7a4; >= 1d76efe1577b4323609b1bcbfafa8b731eda071a, < 420e5aad7ba89e8f79e2dc8327b0c0c24c1c1d53; >= 1d76efe1577b4323609b1bcbfafa8b731eda071a, < 6d3161fa3eee64d46b766fb0db33ec7f300ef52d; >= 1d76efe1577b4323609b1bc…
Fixed in: Linux 420e5aad7ba89e8f79e2dc8327b0c0c24c1c1d53, Linux 6d3161fa3eee64d46b766fb0db33ec7f300ef52d, Linux 0a7468ed49a6b65d34abcc6eb60e15f7f6d34da0, Linux 20491d384d973a63fbdaf7a71e38d69b0659ea55, Linux 425000dbf17373a4ab8be9428f5dc055ef870a56

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-31502 being exploited?

There is no confirmed exploitation: CVE-2026-31502 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-31502?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-31502?

Linux \>= 1d76efe1577b4323609b1bcbfafa8b731eda071a, \< c6e255b0ce30cdea37e34d6d87e2212eb8c7f7a4; \>= 1d76efe1577b4323609b1bcbfafa8b731eda071a, \< 420e5aad7ba89e8f79e2dc8327b0c0c24c1c1d53; \>= 1d76efe1577b4323609b1bcbfafa8b731eda071a, \< 6d3161fa3eee64d46b766fb0db33ec7f300ef52d; \>= 1d76efe1577b4323609b1bcbfafa8b731eda071a, \< 0a7468ed49a6b65d34abcc6eb60e15f7f6d34da0; \>= 1d76efe1577b4323609b1bcbfafa8b731eda071a, \< 20491d384d973a63fbdaf7a71e38d69b0659ea55; \>= 1d76efe1577b4323609b1bcbfafa8b731eda071a, \< 425000dbf17373a4ab8be9428f5dc055ef870a56; Linux 3.7.

### Is there a fix for CVE-2026-31502?

Yes. Fixed in Linux 420e5aad7ba89e8f79e2dc8327b0c0c24c1c1d53, Linux 6d3161fa3eee64d46b766fb0db33ec7f300ef52d, Linux 0a7468ed49a6b65d34abcc6eb60e15f7f6d34da0, Linux 20491d384d973a63fbdaf7a71e38d69b0659ea55, Linux 425000dbf17373a4ab8be9428f5dc055ef870a56. Upgrade Linux to 425000dbf17373a4ab8be9428f5dc055ef870a56 or later.

### How do I check if I'm affected by CVE-2026-31502?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/6d3161fa3eee64d46b766fb0db33ec7f300ef52d>
- patch: <https://git.kernel.org/stable/c/0a7468ed49a6b65d34abcc6eb60e15f7f6d34da0>
- patch: <https://git.kernel.org/stable/c/20491d384d973a63fbdaf7a71e38d69b0659ea55>
- patch: <https://git.kernel.org/stable/c/425000dbf17373a4ab8be9428f5dc055ef870a56>
- other: <https://git.kernel.org/stable/c/c6e255b0ce30cdea37e34d6d87e2212eb8c7f7a4>
- other: <https://git.kernel.org/stable/c/420e5aad7ba89e8f79e2dc8327b0c0c24c1c1d53>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-31502>

HTML: <https://flawdb.com/CVE-2026-31502> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-31502>
