{"id":"CVE-2026-97599","published":"2026-09-25T10:22:13Z","modified":"2026-10-30T12:37:33Z","title":"ieee802154: hwsim: serialize pib updates to fix double-free","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nieee802154: hwsim: serialize pib updates to fix double-free\n\nhwsim_update_pib() does an unserialized read-swap-free of phy->pib:\n\n\tpib_old = rtnl_dereference(phy->pib);\n\t...\n\trcu_assign_pointer(phy->pib, pib);\n\tkfree_rcu(pib_old, rcu);\n\nIt assumes the RTNL is held, but ->set_channel is not always called\nunder it: the mac802154 scan worker changes channels via\ndrv_set_channel() without the RTNL. Such an update can race an\nRTNL-held one on the same phy; both read the same pib_old and both\nkfree_rcu() it, double-freeing the object. With SLUB percpu sheaves\nbatching kfree_rcu(), this surfaces as a KASAN invalid-free in\nrcu_free_sheaf().\n\nstruct hwsim_phy has no lock for pib. Add one and make the swap atomic\nwith rcu_replace_pointer() under it, dropping the misleading\nrtnl_dereference().","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00205,"percentile":0.10572,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/8f44a61f816581c35c1974c8c1a3b3c2c49e96be","tags":[]},{"url":"https://git.kernel.org/stable/c/e3b4681197aa026bd2d79358de5a3d62b76b04b9","tags":[]},{"url":"https://git.kernel.org/stable/c/9973b3a67a7592a780ea12b08334539a900deec1","tags":[]},{"url":"https://git.kernel.org/stable/c/d3b8f264ce09573aededd0a97dc41c8147797d8f","tags":[]},{"url":"https://git.kernel.org/stable/c/db6442deecb1f13aeaf4f9d77746ea7555630fb3","tags":[]},{"url":"https://git.kernel.org/stable/c/979d5b8de8ed4e1f997aef12da5694b99be7b871","tags":[]}],"priority":{"score":2.1,"factors":[{"name":"EPSS percentile","points":2.11}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= f25da51fdc381ca2863248c7060b3662632f0872, < 8f44a61f816581c35c1974c8c1a3b3c2c49e96be",">= f25da51fdc381ca2863248c7060b3662632f0872, < e3b4681197aa026bd2d79358de5a3d62b76b04b9",">= f25da51fdc381ca2863248c7060b3662632f0872, < 9973b3a67a7592a780ea12b08334539a900deec1",">= f25da51fdc381ca2863248c7060b3662632f0872, < d3b8f264ce09573aededd0a97dc41c8147797d8f",">= f25da51fdc381ca2863248c7060b3662632f0872, < db6442deecb1f13aeaf4f9d77746ea7555630fb3",">= f25da51fdc381ca2863248c7060b3662632f0872, < 979d5b8de8ed4e1f997aef12da5694b99be7b871"]},{"vendor":"Linux","product":"Linux","versions":["4.19"]}],"euvd":{"id":"EUVD-2026-86730","exploited":false,"provenance":"source"}}