# CVE-2026-98807: net/mlx5: Fix slab-out-of-bounds when handling team device events

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-10-18T15:48:53.992Z
- **Modified:** 2026-10-19T10:19:44.747Z

## Who should check

- Anyone running Linux \>= 54493a08e21f46446b3b24577c5a6f229d049757, \< 16ca0e79f31ea810346a79dda545ba344ede1d47; \>= 54493a08e21f46446b3b24577c5a6f229d049757, \< 3a6e67ff267af2053a793825c3b7844741fed461; \>= 54493a08e21f46446b3b24577c5a6f229d049757, \< 8117cbc504cb01980258d8a8c9be8f57cf0aaceb; \>= 54493a08e21f46446b3b24577c5a6f229d049757, \< 04c824940d52871c49866a4ac67b504146f7cf35
- Anyone running Linux 5.18

## Description

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

net/mlx5: Fix slab-out-of-bounds when handling team device events

The mlx5\_handle\_changeupper\_event() and mlx5\_handle\_changeinfodata\_event()
functions check for LAG masters (which includes both bonding and team
devices) but only call bonding-specific APIs. When processing team device
events, calling bond\_slave\_get\_rcu() and bond\_is\_slave\_inactive() on
team\_port structures causes KASAN to detect an out-of-bounds memory access
since team\_port is smaller than bond slave.

Fix this by wrapping the bond-specific API calls with a check for bonding
devices. This allows the function to still process LAG events for both
bonding and teams but only calls bond-specific functions when dealing with
actual bonding devices.

For mlx5\_handle\_changeinfodata\_event(), keep the explicit bond check as
mlx5 doesn't handle state information for team ports anyway.

Tested with Mellanox ConnectX-5 on Linux 7.2.0-rc6:
- Bonding: PASS (no regressions)
- Team device: PASS (no KASAN errors)

## Affected and fixed versions

- Linux: \>= 54493a08e21f46446b3b24577c5a6f229d049757, \< 16ca0e79f31ea810346a79dda545ba344ede1d47; \>= 54493a08e21f46446b3b24577c5a6f229d049757, \< 3a6e67ff267af2053a793825c3b7844741fed461; \>= 54493a08e21f46446b3b24577c5a6f229d049757, \< 8117cbc504cb01980258d8a8c9be8f57cf0aaceb; \>= 54493a08e21f46446b3b24577c5a6f229d049757, \< 04c824940d52871c49866a4ac67b504146f7cf35 (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- Upgrade Linux to 04c824940d52871c49866a4ac67b504146f7cf35 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-98807. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98807.md
Affected: Linux >= 54493a08e21f46446b3b24577c5a6f229d049757, < 16ca0e79f31ea810346a79dda545ba344ede1d47; >= 54493a08e21f46446b3b24577c5a6f229d049757, < 3a6e67ff267af2053a793825c3b7844741fed461; >= 54493a08e21f46446b3b24577c5a6f229d049757, < 8117cbc504cb01980258d8a8c9be8f57cf0aaceb; >= 54493a08e21f46446b3b245…
Fixed in: Linux 16ca0e79f31ea810346a79dda545ba344ede1d47, Linux 3a6e67ff267af2053a793825c3b7844741fed461, Linux 8117cbc504cb01980258d8a8c9be8f57cf0aaceb, Linux 04c824940d52871c49866a4ac67b504146f7cf35

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-98807 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 54493a08e21f46446b3b24577c5a6f229d049757, \< 16ca0e79f31ea810346a79dda545ba344ede1d47; \>= 54493a08e21f46446b3b24577c5a6f229d049757, \< 3a6e67ff267af2053a793825c3b7844741fed461; \>= 54493a08e21f46446b3b24577c5a6f229d049757, \< 8117cbc504cb01980258d8a8c9be8f57cf0aaceb; \>= 54493a08e21f46446b3b24577c5a6f229d049757, \< 04c824940d52871c49866a4ac67b504146f7cf35; Linux 5.18.

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

Yes. Fixed in Linux 16ca0e79f31ea810346a79dda545ba344ede1d47, Linux 3a6e67ff267af2053a793825c3b7844741fed461, Linux 8117cbc504cb01980258d8a8c9be8f57cf0aaceb, Linux 04c824940d52871c49866a4ac67b504146f7cf35. Upgrade Linux to 04c824940d52871c49866a4ac67b504146f7cf35 or later.

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

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

- other: <https://git.kernel.org/stable/c/16ca0e79f31ea810346a79dda545ba344ede1d47>
- other: <https://git.kernel.org/stable/c/3a6e67ff267af2053a793825c3b7844741fed461>
- other: <https://git.kernel.org/stable/c/8117cbc504cb01980258d8a8c9be8f57cf0aaceb>
- other: <https://git.kernel.org/stable/c/04c824940d52871c49866a4ac67b504146f7cf35>

## 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-98807>

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