CVE-2026-98807

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

No CVSS score yet EPSS 0.18%

Published 18 Oct 2026 Updated 19 Oct 2026 CNA: Linux

Check your servers for CVE-2026-98807

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-98807 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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)

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.37% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 54493a08e21f46446b3b24577c5a6f229d049757, before 16ca0e79f31ea810346a79dda545ba344ede1d47
affected from 54493a08e21f46446b3b24577c5a6f229d049757, before 3a6e67ff267af2053a793825c3b7844741fed461
affected from 54493a08e21f46446b3b24577c5a6f229d049757, before 8117cbc504cb01980258d8a8c9be8f57cf0aaceb
affected from 54493a08e21f46446b3b24577c5a6f229d049757, before 04c824940d52871c49866a4ac67b504146f7cf35
Other versions: unaffected
Linux
affected 5.18
unaffected before 5.18
unaffected from 6.12.113 up to and including 6.12.*
unaffected from 6.18.56 up to and including 6.18.*
unaffected from 7.2.10 up to and including 7.2.*
unaffected 7.3 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-98807 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-98807

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-98807
trivy image --scanners vuln IMAGE | grep CVE-2026-98807

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-98807 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.