CVE-2026-97599

Source
https://cve.org/CVERecord?id=CVE-2026-97599
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-97599.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-97599
Downstream
Published
2026-09-25T10:22:13Z
Modified
2026-09-26T03:48:30Z
Summary
ieee802154: hwsim: serialize pib updates to fix double-free
Details

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

ieee802154: hwsim: serialize pib updates to fix double-free

hwsim_update_pib() does an unserialized read-swap-free of phy->pib:

pib_old = rtnl_dereference(phy->pib);
...
rcu_assign_pointer(phy->pib, pib);
kfree_rcu(pib_old, rcu);

It assumes the RTNL is held, but ->set_channel is not always called under it: the mac802154 scan worker changes channels via drv_set_channel() without the RTNL. Such an update can race an RTNL-held one on the same phy; both read the same pib_old and both kfree_rcu() it, double-freeing the object. With SLUB percpu sheaves batching kfree_rcu(), this surfaces as a KASAN invalid-free in rcu_free_sheaf().

struct hwsim_phy has no lock for pib. Add one and make the swap atomic with rcu_replace_pointer() under it, dropping the misleading rtnl_dereference().

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97599.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f25da51fdc381ca2863248c7060b3662632f0872
Fixed
9973b3a67a7592a780ea12b08334539a900deec1
Fixed
d3b8f264ce09573aededd0a97dc41c8147797d8f
Fixed
db6442deecb1f13aeaf4f9d77746ea7555630fb3
Fixed
979d5b8de8ed4e1f997aef12da5694b99be7b871

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-97599.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.19.0
Fixed
6.12.111
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.53
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.2.7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-97599.json"