KernelScan.io

HIGH Introduced in 3.14

mac80211 PsDelivery Race

CVE-2026-98706

CVSS 7.0 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

01

In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: drain PS delivery work during station teardown Removing an AP or mesh station can notify the driver and wake TXQs after the station has already been removed from the driver, and can update num_sta_ps and the power-save queues after station cleanup has purged them. sta_deliver_ps_frames() tests sta->dead only before it starts delivery. A worker that passes that test can be delayed while teardown sets sta->dead and removes the station from the driver; when it resumes it still runs the full delivery. The existing cancel_work_sync() sits near the end of __cleanup_single_sta(), after the final driver state transition and after PS accounting and queue purging, so it drains the worker only once the state it has to protect has already changed. Before commit d34ba2168a3c ("mac80211: don't delay station destruction") cleanup was deferred through the same ordered workqueue as the delivery work, which kept the two ordered. Cancel the work after setting sta->dead and before moving the driver state, and move the existing cancellation to the start of __cleanup_single_sta(). The first drain closes the driver-lifetime window; driver callbacks during the remaining state transitions can still queue drv_deliver_wk through ieee80211_sta_block_awake(), so retain the second drain at the start of __cleanup_single_sta(). That drain also covers insertion failures, which reach cleanup without setting sta->dead.

02

Engine v0.9.0

Risk summary

A race condition in the mac80211 WiFi subsystem allows a local attacker to trigger a use-after-free during station teardown in AP or mesh mode. The power-save frame delivery worker can resume after the station has been cleaned up, accessing freed memory and potentially achieving arbitrary kernel code execution or a kernel panic.

Affectednet/mac80211/sta_info.c (mac80211)

Vulnerability analysis

When an AP or mesh station is removed, a background worker that delivers buffered power-save frames checks whether the station is marked dead before starting its work. However, the worker can be delayed after this check while the teardown sequence marks the station dead, removes it from the driver, and purges its power-save queues. When the worker resumes, it proceeds with delivery using stale state, accessing memory that has already been freed or repurposed. The fix adds two synchronization points: the first drains the worker immediately after marking the station dead but before any driver state changes, closing the window where the worker could race with driver removal; the second drain is moved to the start of the cleanup routine to also cover insertion failures and any worker re-queuing during later teardown steps. An attacker needs local access with sufficient privileges to manage WiFi stations (e.g., CAP_NET_ADMIN in a user namespace, or control of a hostapd/mesh daemon) and can exploit this by triggering rapid station add/remove cycles to win the race.

03

BranchIntroducedFixed inPatch commit
5.103.145.10.27301292d4c491b
5.153.145.15.224dedae75046c4
6.13.146.1.191086e7aebd3a9
6.123.146.12.113843d3a1e6f25
6.183.146.18.56772bd89304ec
6.63.146.6.160cbff71fe689f
7.23.147.2.10097460fcdd8a
mainline3.147.367a9e80c3ca2
cip/6.123.146.12.114-cip34843d3a1e6f25

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.114-cip34
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)
cip/5.10Affected — no CIP fix yet (latest 5.10.272-cip79)
cip/5.10-rtAffected — no CIP fix yet (latest 5.10.272-cip79-rt35)
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip136)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip136-rt50)
cip/4.4Affected — no CIP fix yet (latest 4.4.302-cip115)
cip/4.4-rtAffected — no CIP fix yet (latest 4.4.302-cip115-rt63)