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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-10-18T15:48:53.992Z
- Modified: 2026-10-19T10:19:44.747Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 54493a08e21f46446b3b24577c5a6f229d049757 before 16ca0e79f31ea810346a79dda545ba344ede1d47; from 54493a08e21f46446b3b24577c5a6f229d049757 before 3a6e67ff267af2053a793825c3b7844741fed461; from 54493a08e21f46446b3b24577c5a6f229d049757 before 8117cbc504cb01980258d8a8c9be8f57cf0aaceb; from 54493a08e21f46446b3b24577c5a6f229d049757 before 04c824940d52871c49866a4ac67b504146f7cf35; 5.18 (not affected: before 5.18; from 6.12.113 up to 6.12.*; from 6.18.56 up to 6.18.*; from 7.2.10 up to 7.2.*; from 7.3 up to *)

## References

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

## Sources

- CVE List: [CVE-2026-98807](https://www.cve.org/CVERecord?id=CVE-2026-98807), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98807](https://nvd.nist.gov/vuln/detail/CVE-2026-98807), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-98807 · Whole record: https://cve.day/CVE-2026-98807.json · Rebuilt by cve.day 2026-11-25T22:59:45.309Z
