{"id":"CVE-2026-97599","aliases":["CVE-2026-97599"],"related":[],"kind":"vulnerability","state":"published","title":"ieee802154: hwsim: serialize pib updates to fix double-free","summary":"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().","summarySource":"cvelist","descriptions":[{"lang":"en","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().","source":"cvelist"}],"published":"2026-09-25T10:22:13.606Z","modified":"2026-10-30T13:21:09.240Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"f25da51fdc381ca2863248c7060b3662632f0872","fixed":"8f44a61f816581c35c1974c8c1a3b3c2c49e96be","status":"affected"},{"type":"git","introduced":"f25da51fdc381ca2863248c7060b3662632f0872","fixed":"e3b4681197aa026bd2d79358de5a3d62b76b04b9","status":"affected"},{"type":"git","introduced":"f25da51fdc381ca2863248c7060b3662632f0872","fixed":"9973b3a67a7592a780ea12b08334539a900deec1","status":"affected"},{"type":"git","introduced":"f25da51fdc381ca2863248c7060b3662632f0872","fixed":"d3b8f264ce09573aededd0a97dc41c8147797d8f","status":"affected"},{"type":"git","introduced":"f25da51fdc381ca2863248c7060b3662632f0872","fixed":"db6442deecb1f13aeaf4f9d77746ea7555630fb3","status":"affected"},{"type":"git","introduced":"f25da51fdc381ca2863248c7060b3662632f0872","fixed":"979d5b8de8ed4e1f997aef12da5694b99be7b871","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.19","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.111","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.53","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.7","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/8f44a61f816581c35c1974c8c1a3b3c2c49e96be","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e3b4681197aa026bd2d79358de5a3d62b76b04b9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9973b3a67a7592a780ea12b08334539a900deec1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d3b8f264ce09573aededd0a97dc41c8147797d8f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/db6442deecb1f13aeaf4f9d77746ea7555630fb3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/979d5b8de8ed4e1f997aef12da5694b99be7b871","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-97599","url":"https://www.cve.org/CVERecord?id=CVE-2026-97599","licence":"CVE Terms of Use","modified":"2026-10-30T12:37:33.925Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-97599","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97599","licence":"Public domain","modified":"2026-10-30T13:21:09.240Z"}],"updatedAt":"2026-11-25T22:59:40.972Z","epss":{"score":0.00205,"percentile":0.11143,"date":"2026-12-02T12:00:21.000Z"}}