mac802154: fix use-after-free of sdata via queued RX frames
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->r
CVE-2026-97595
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-97595
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "57588c71177f0bfc08509c2c3a9bfe32850c0786",
"lessThan": "4826fd8373f684f9952536333ad45b26acd3455d",
"versionType": "git"
},
{
"status": "affected",
"version": "57588c71177f0bfc08509c2c3a9bfe32850c0786",
"lessThan": "4740ef0518c5e3bf31ebfb2288a6ac3b462ead06",
"versionType": "git"
},
{
"status": "affected",
"version": "57588c71177f0bfc08509c2c3a9bfe32850c0786",
"lessThan": "07f0214018d7241e3610c1be984c8abfce16c099",
"versionType": "git"
},
{
"status": "affected",
"version": "57588c71177f0bfc08509c2c3a9bfe32850c0786",
"lessThan": "3d1fde35f95d7f02a7dc473c51d81e8d9e992cfc",
"versionType": "git"
},
{
"status": "affected",
"version": "57588c71177f0bfc08509c2c3a9bfe32850c0786",
"lessThan": "2f37fba846c9fdff5fc15b6d93656057ccd13031",
"versionType": "git"
}
],
"programFiles": [
"include/net/cfg802154.h",
"net/mac802154/ieee802154_i.h",
"net/mac802154/iface.c",
"net/mac802154/main.c",
"net/mac802154/rx.c",
"net/mac802154/scan.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6.3"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.3",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.6.158",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.111",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.53",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.7",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"include/net/cfg802154.h",
"net/mac802154/ieee802154_i.h",
"net/mac802154/iface.c",
"net/mac802154/main.c",
"net/mac802154/rx.c",
"net/mac802154/scan.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-97595
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #38036 · Revision 1
- Added to Heist Feed
- Publisher date