CVE-2026-98305
published high CVSS 3.1 · 7.8net: dsa: mxl862xx: disable the stats poll on teardown
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxa21d33a5265f0b31d935a8b9b2b6faefb5185911 to < 97df811a11d4f76bc2ffe67b6bf730263f56c668 · a21d33a5265f0b31d935a8b9b2b6faefb5185911 to < 9e92ad4630f5dd1838ce6bbe6b1bd2c73d34de36 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux7.1 (affected) · 0 to < 7.1 (unaffected · semver) · 7.2.8 through 7.2.* (unaffected · semver) · 7.3 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.2.10-1.1 | OPENSUSE-SU-2026:12131-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.2.10-1.1 | OPENSUSE-SU-2026:12131-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.2.10-1.1 | OPENSUSE-SU-2026:12131-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.2.10-1.1 | OPENSUSE-SU-2026:12131-1 |
Show 12 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.2.10-1.1 | OPENSUSE-SU-2026:12131-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.2.10-1.1 | OPENSUSE-SU-2026:12131-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.2.10-1.1 | OPENSUSE-SU-2026:12131-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.2.10-1.1 | OPENSUSE-SU-2026:12131-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.2.10-1.1 | OPENSUSE-SU-2026:12131-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.2.10-1.1 | OPENSUSE-SU-2026:12131-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.2.10-1.1 | OPENSUSE-SU-2026:12131-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.2.10-1.1 | OPENSUSE-SU-2026:12131-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.2.10-1.1 | OPENSUSE-SU-2026:12131-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.2.10-1.1 | OPENSUSE-SU-2026:12131-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.2.10-1.1 | OPENSUSE-SU-2026:12131-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.2.10-1.1 | OPENSUSE-SU-2026:12131-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The racing input is local: reading /proc/net/dev or RTM_GETLINK calls dsa_user_get_stats64() -> mxl862xx_get_stats64(), which re-queues priv->stats_work. No packet from a remote peer feeds the bug; it is a teardown-ordering error in mxl862xx_setup()/remove()/shutdown(). AC:L - placeholder PR:L - Any unprivileged local user can read interface statistics on the switch's user ports, and that read is the attacker's side of the race (the schedule_delayed_work() call in mxl862xx_get_stats64()). No capability check stands in the way. UI:N - No victim action such as opening a file or mounting media is needed. The attacker's part is only repeated stats reads; the teardown event is covered under AC. S:U - The freed dsa_port objects and the devm-freed mxl862xx_priv are kernel memory, and the impact stays within the kernel's own security authority. C:H - mxl862xx_stats_work_fn() walks the ds->ports list after dsa_switch_release_ports() has run kfree(dp). It reads dp->index from freed memory and writes counters into priv->ports[].stats. A use-after-free like this can be turned into a memory read primitive. I:H - On remove, a re-armed stats_work sits inside the devm-freed mxl862xx_priv. When its timer fires, the workqueue uses the work_struct and its func pointer from memory that may have been reallocated, which allows control-flow hijack. The stats poll also writes into freed memory. A:H - Walking freed dsa_port entries or running a work item from freed priv memory causes a kernel oops or panic. In the shutdown case, the poll keeps reaching the switch after mxl862xx_host_shutdown(), which can also crash the system during reboot.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | a21d33a5265f0b31d935a8b9b2b6faefb5185911 to < 97df811a11d4f76bc2ffe67b6bf730263f56c668 (affected · git)a21d33a5265f0b31d935a8b9b2b6faefb5185911 to < 9e92ad4630f5dd1838ce6bbe6b1bd2c73d34de36 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 7.1 (affected)0 to < 7.1 (unaffected · semver)7.2.8 through 7.2.* (unaffected · semver)7.3 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
net: dsa: mxl862xx: disable the stats poll on teardown
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 36d1c14d73e56b76beb0a4a5e4fb10563c60cb1cf6afb8d4938964346ee14132
- Ingested
- 19 Oct 2026, 09:35:31 UTC
- Source record
- Official CVE record