{"id":"CVE-2026-98807","title":"net/mlx5: Fix slab-out-of-bounds when handling team device events","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: Fix slab-out-of-bounds when handling team device events\n\nThe mlx5_handle_changeupper_event() and mlx5_handle_changeinfodata_event()\nfunctions check for LAG ma…","severity":"none","vendor":"Linux","product":"Linux","affected":["Linux >= 54493a08e21f46446b3b24577c5a6f229d049757 < 16ca0e79f31ea810346a79dda545ba344ede1d47","Linux >= 54493a08e21f46446b3b24577c5a6f229d049757 < 3a6e67ff267af2053a793825c3b7844741fed461","Linux >= 54493a08e21f46446b3b24577c5a6f229d049757 < 8117cbc504cb01980258d8a8c9be8f57cf0aaceb","Linux >= 54493a08e21f46446b3b24577c5a6f229d049757 < 04c824940d52871c49866a4ac67b504146f7cf35","Linux 5.18"],"published":"2026-10-18","updated":"2026-10-18","sourceUpdated":"2026-10-18T15:48:53.992Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-98807","references":[{"url":"https://git.kernel.org/stable/c/16ca0e79f31ea810346a79dda545ba344ede1d47"},{"url":"https://git.kernel.org/stable/c/3a6e67ff267af2053a793825c3b7844741fed461"},{"url":"https://git.kernel.org/stable/c/8117cbc504cb01980258d8a8c9be8f57cf0aaceb"},{"url":"https://git.kernel.org/stable/c/04c824940d52871c49866a4ac67b504146f7cf35"}],"tags":["cve.org"],"ingestedAt":"2026-10-18T16:47:32.480Z","slug":"CVE-2026-98807","body":"## Overview\n\nIn the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: Fix slab-out-of-bounds when handling team device events\n\nThe mlx5_handle_changeupper_event() and mlx5_handle_changeinfodata_event()\nfunctions check for LAG masters (which includes both bonding and team\ndevices) but only call bonding-specific APIs. When processing team device\nevents, calling bond_slave_get_rcu() and bond_is_slave_inactive() on\nteam_port structures causes KASAN to detect an out-of-bounds memory access\nsince team_port is smaller than bond slave.\n\nFix this by wrapping the bond-specific API calls with a check for bonding\ndevices. This allows the function to still process LAG events for both\nbonding and teams but only calls bond-specific functions when dealing with\nactual bonding devices.\n\nFor mlx5_handle_changeinfodata_event(), keep the explicit bond check as\nmlx5 doesn't handle state information for team ports anyway.\n\nTested with Mellanox ConnectX-5 on Linux 7.2.0-rc6:\n- Bonding: PASS (no regressions)\n- Team device: PASS (no KASAN errors)\n\n## Affected\n\n- `Linux >= 54493a08e21f46446b3b24577c5a6f229d049757 < 16ca0e79f31ea810346a79dda545ba344ede1d47`\n- `Linux >= 54493a08e21f46446b3b24577c5a6f229d049757 < 3a6e67ff267af2053a793825c3b7844741fed461`\n- `Linux >= 54493a08e21f46446b3b24577c5a6f229d049757 < 8117cbc504cb01980258d8a8c9be8f57cf0aaceb`\n- `Linux >= 54493a08e21f46446b3b24577c5a6f229d049757 < 04c824940d52871c49866a4ac67b504146f7cf35`\n- `Linux 5.18`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":3,"depthScoreParts":{"impact":2.8,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}