# CVE-2026-97595: mac802154: fix use-after-free of sdata via queued RX frames

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.34% (percentile 19, 2026-11-26)
- **Published:** 2026-09-25T10:22:11.134Z
- **Modified:** 2026-10-19T10:17:29.053Z

## Who should check

- Anyone running Linux \>= 57588c71177f0bfc08509c2c3a9bfe32850c0786, \< 4826fd8373f684f9952536333ad45b26acd3455d; \>= 57588c71177f0bfc08509c2c3a9bfe32850c0786, \< 4740ef0518c5e3bf31ebfb2288a6ac3b462ead06; \>= 57588c71177f0bfc08509c2c3a9bfe32850c0786, \< 07f0214018d7241e3610c1be984c8abfce16c099; \>= 57588c71177f0bfc08509c2c3a9bfe32850c0786, \< 3d1fde35f95d7f02a7dc473c51d81e8d9e992cfc; \>= 57588c71177f0bfc08509c2c3a9bfe32850c0786, \< 2f37fba846c9fdff5fc15b6d93656057ccd13031
- Anyone running Linux 6.3

## Description

In the Linux kernel, the following vulnerability has been resolved:

mac802154: fix use-after-free of sdata via queued RX frames

The RX softirq producer ieee802154\_subif\_frame() queues received beacon
and MAC-command frames onto local-\>rx\_beacon\_list / rx\_mac\_cmd\_list and
schedules a process-context worker, storing a raw mac\_pkt-\>sdata (and
skb-\>dev == sdata-\>dev) with neither a reference nor any locking:

 - the lists have no lock: the softirq producer list\_add\_tail()s while the
   mac\_wq worker list\_del()s, so sibling interfaces on the same phy corrupt
   the list;

 - the workers dereference the interface after it may have been freed.
   mac802154\_rx\_mac\_cmd\_worker() touches mac\_pkt-\>sdata directly, and
   mac802154\_rx\_beacon\_worker() -\> mac802154\_process\_beacon() dereferences
   skb-\>dev (== sdata-\>dev). Removing an interface frees its sdata
   (netdev\_priv) while a queued frame still points at it, so a later worker
   run is a use-after-free.

Reproduced under KASAN by flooding a victim interface with MAC command
frames and removing it (the beacon path is the same class via skb-\>dev):

  BUG: KASAN: slab-use-after-free in mac802154\_rx\_mac\_cmd\_worker+0x463/0x630 \[mac802154\]
  Read of size 4 at addr ffff888002f9ea18 by task kworker/u8:1/31
  Workqueue: phy0-mac-cmds mac802154\_rx\_mac\_cmd\_worker \[mac802154\]
  Call Trace:
   mac802154\_rx\_mac\_cmd\_worker+0x463/0x630 \[mac802154\]
   process\_one\_work+0x611/0xe80
   worker\_thread+0x52e/0xdc0
   kthread+0x30c/0x630
   ret\_from\_fork+0x2fd/0x3e0

Fix both lists together:

 - add local-\>rx\_lock and take it around every list access: the softirq
   producer (plain spin\_lock, softirq context) and the workers and flush
   (spin\_lock\_bh, process context);

 - pin the interface for the lifetime of a queued frame with
   netdev\_hold()/netdev\_put(), so the worker can safely dereference sdata /
   skb-\>dev even while the interface is being removed;

 - dequeue under the lock at the head and loop-drain the whole list in the
   workers (they previously processed one frame per run and relied on a
   later enqueue to drain the rest);

 - drop not-yet-started frames of an interface before it is unregistered,
   from ieee802154\_if\_remove() (after the RCU grace period) and from the
   ieee802154\_remove\_interfaces() loop -- the latter is the whole-phy
   teardown path, which does not go through ieee802154\_if\_remove().

An in-flight worker that already dequeued a frame keeps its own netdev
reference; unregister\_netdevice() then waits it out in netdev\_run\_todo(),
which runs at rtnl\_unlock() (rtnl released) and after the interface has
been closed, so it does not pin rtnl. A worker blocked in an association
TX only delays that one interface's unregister (the usual "waiting for %s
to become free"), it does not hold rtnl. netdev\_hold() is used for this
reason instead of a cancel\_work\_sync() under rtnl, which would block on
the worker's unbounded MLME TX wait via ieee802154\_sync\_queue().

The mac-command worker additionally skips processing for a stopped
interface (ieee802154\_sdata\_running()), avoiding a needless association
response during teardown.

## Affected and fixed versions

- Linux: \>= 57588c71177f0bfc08509c2c3a9bfe32850c0786, \< 4826fd8373f684f9952536333ad45b26acd3455d; \>= 57588c71177f0bfc08509c2c3a9bfe32850c0786, \< 4740ef0518c5e3bf31ebfb2288a6ac3b462ead06; \>= 57588c71177f0bfc08509c2c3a9bfe32850c0786, \< 07f0214018d7241e3610c1be984c8abfce16c099; \>= 57588c71177f0bfc08509c2c3a9bfe32850c0786, \< 3d1fde35f95d7f02a7dc473c51d81e8d9e992cfc; \>= 57588c71177f0bfc08509c2c3a9bfe32850c0786, \< 2f37fba846c9fdff5fc15b6d93656057ccd13031 (cvelist)
- Linux: 6.3 (cvelist)

## Mitigation

- Upgrade Linux to 2f37fba846c9fdff5fc15b6d93656057ccd13031 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-97595. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-97595.md
Affected: Linux >= 57588c71177f0bfc08509c2c3a9bfe32850c0786, < 4826fd8373f684f9952536333ad45b26acd3455d; >= 57588c71177f0bfc08509c2c3a9bfe32850c0786, < 4740ef0518c5e3bf31ebfb2288a6ac3b462ead06; >= 57588c71177f0bfc08509c2c3a9bfe32850c0786, < 07f0214018d7241e3610c1be984c8abfce16c099; >= 57588c71177f0bfc08509c2…
Fixed in: Linux 4826fd8373f684f9952536333ad45b26acd3455d, Linux 4740ef0518c5e3bf31ebfb2288a6ac3b462ead06, Linux 07f0214018d7241e3610c1be984c8abfce16c099, Linux 3d1fde35f95d7f02a7dc473c51d81e8d9e992cfc, Linux 2f37fba846c9fdff5fc15b6d93656057ccd13031

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-97595 being exploited?

There is no confirmed exploitation: CVE-2026-97595 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-97595?

High: CVSS 7.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-97595?

Linux \>= 57588c71177f0bfc08509c2c3a9bfe32850c0786, \< 4826fd8373f684f9952536333ad45b26acd3455d; \>= 57588c71177f0bfc08509c2c3a9bfe32850c0786, \< 4740ef0518c5e3bf31ebfb2288a6ac3b462ead06; \>= 57588c71177f0bfc08509c2c3a9bfe32850c0786, \< 07f0214018d7241e3610c1be984c8abfce16c099; \>= 57588c71177f0bfc08509c2c3a9bfe32850c0786, \< 3d1fde35f95d7f02a7dc473c51d81e8d9e992cfc; \>= 57588c71177f0bfc08509c2c3a9bfe32850c0786, \< 2f37fba846c9fdff5fc15b6d93656057ccd13031; Linux 6.3.

### Is there a fix for CVE-2026-97595?

Yes. Fixed in Linux 4826fd8373f684f9952536333ad45b26acd3455d, Linux 4740ef0518c5e3bf31ebfb2288a6ac3b462ead06, Linux 07f0214018d7241e3610c1be984c8abfce16c099, Linux 3d1fde35f95d7f02a7dc473c51d81e8d9e992cfc, Linux 2f37fba846c9fdff5fc15b6d93656057ccd13031. Upgrade Linux to 2f37fba846c9fdff5fc15b6d93656057ccd13031 or later.

### How do I check if I'm affected by CVE-2026-97595?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/4826fd8373f684f9952536333ad45b26acd3455d>
- other: <https://git.kernel.org/stable/c/4740ef0518c5e3bf31ebfb2288a6ac3b462ead06>
- other: <https://git.kernel.org/stable/c/07f0214018d7241e3610c1be984c8abfce16c099>
- other: <https://git.kernel.org/stable/c/3d1fde35f95d7f02a7dc473c51d81e8d9e992cfc>
- other: <https://git.kernel.org/stable/c/2f37fba846c9fdff5fc15b6d93656057ccd13031>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-97595>

HTML: <https://flawdb.com/CVE-2026-97595> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-97595>
