{"id":"CVE-2026-99488","published":"2026-11-19T14:43:27Z","modified":"2026-11-19T14:43:27Z","title":"klist: avoid accesses after waking klist_remove()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nklist: avoid accesses after waking klist_remove()\n\nklist_remove() waits until a node is unreferenced so that its caller can\nfree the containing object.  klist_release() currently publishes\nwaiter->woken and wakes the waiter before its final accesses to the waiter\nand node.  klist_remove() can then return, allowing its stack waiter and\nthe containing object to be freed or reused while klist_release() is still\nrunning.  In particular, bus_remove_driver() can free drv->p while\n__device_attach() walks the same bus klist with bus_for_each_drv().\n\nOn an arm64 Cortex-A72 system, an unpatched 7.2.0-rc3 kernel with\nCONFIG_PREEMPT_RT=y and CONFIG_KASAN=y reproduced the bug through the\nin-tree I2C/at24 path.  KASAN reported a use-after-free in\nklist_dec_and_del() reached from klist_next()/bus_for_each_drv() while\nat24 was being unregistered.\n\nClear n_klist and take a task reference before publishing woken.  Use\nrelease/acquire accesses for that publication and wake the referenced\ntask.  The task reference keeps the waiter task alive if it returns and\nexits before wake_up_process().","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00174,"percentile":0.06958,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/3fee2a5ef405f08ea3d87d2014ae7d38e61dd06f","tags":[]},{"url":"https://git.kernel.org/stable/c/d655ef174056457d1c3bc06b4405097e0a9b3bf5","tags":[]},{"url":"https://git.kernel.org/stable/c/7d3df012573523cb2f38a65e3e00125d9869b390","tags":[]},{"url":"https://git.kernel.org/stable/c/732e3e10234cbe302d0dcbaa98c91c66628209cb","tags":[]}],"priority":{"score":1.4,"factors":[{"name":"EPSS percentile","points":1.39}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 8b0c250be489dcbf1a3a33bb4ec4c7f33735a365, < 3fee2a5ef405f08ea3d87d2014ae7d38e61dd06f",">= 8b0c250be489dcbf1a3a33bb4ec4c7f33735a365, < d655ef174056457d1c3bc06b4405097e0a9b3bf5",">= 8b0c250be489dcbf1a3a33bb4ec4c7f33735a365, < 7d3df012573523cb2f38a65e3e00125d9869b390",">= 8b0c250be489dcbf1a3a33bb4ec4c7f33735a365, < 732e3e10234cbe302d0dcbaa98c91c66628209cb"]},{"vendor":"Linux","product":"Linux","versions":["2.6.13"]}],"euvd":{"id":"EUVD-2026-130163","exploited":false,"provenance":"source"}}