CVE-2026-98305·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 7.2.8, 7.3
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.13% — higher than 2% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-98305 scores 7.8 on CVSS, so a successful attack would be serious — but at 0.13%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
How to fix this CVE
Update your Linux kernel to version 7.2.8 (stable branch) or 7.3+ (mainline) to resolve a race condition in the mxl862xx DSA driver's statistics polling mechanism. This vulnerability allows freed memory access during driver teardown or failed initialization. If you're running a stable kernel, apply the patch from your distribution's package manager rather than jumping to mainline.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check your current kernel version and compare it against the fixed versions (7.2.8, 7.3+)
- Verify if mxl862xx driver is loaded: 'lsmod | grep mxl862xx' — if present, your system uses the affected component
- Check kernel logs for crash messages related to DSA or network device teardown: 'sudo journalctl -b | grep -i 'dsa\|mxl862xx\|use-after-free'
- Confirm the patch is applied by inspecting the kernel build date: 'uname -v' should reflect a build date after the fix commit date (check git.kernel.org for exact date)
FAQ
What is CVE-2026-98305?
This is a race condition in the Linux kernel's mxl862xx Distributed Switch Architecture driver where the statistics polling mechanism is not properly synchronized with driver teardown, leading to use-after-free when accessing freed port structures during driver removal or failed initialization.
Is CVE-2026-98305 being actively exploited?
No, this vulnerability is not currently listed as actively exploited by CISA, and no public exploits are available. However, it carries a CVSS score of 7.8 (high severity) due to its potential for privilege escalation on affected systems.
What versions of Kernel are affected by CVE-2026-98305?
The exact affected version range is not fully disclosed, but the fix is available in stable branch 7.2.8 and mainline 7.3+. Systems running earlier versions of these branches are vulnerable.
How do I check if my server is vulnerable to CVE-2026-98305?
Run 'uname -r' to get your kernel version, then run 'lsmod | grep mxl862xx' to confirm the driver is loaded. If the kernel version is earlier than 7.2.8 or 7.3 and the driver is present, your system is vulnerable.
Does Defensia detect CVE-2026-98305?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-98305 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-98305. Free for 1 server.
Get started free