{"id":"CVE-2026-99488","aliases":["CVE-2026-99488"],"related":[],"kind":"vulnerability","state":"published","title":"klist: avoid accesses after waking klist_remove()","summary":"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().","summarySource":"cvelist","descriptions":[{"lang":"en","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().","source":"cvelist"}],"published":"2026-11-19T14:43:27.553Z","modified":"2026-11-23T08:17:51.743Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8b0c250be489dcbf1a3a33bb4ec4c7f33735a365","fixed":"224f1c87086b9bc15bfc2dc0fd6f23df265eb976","status":"affected"},{"type":"git","introduced":"8b0c250be489dcbf1a3a33bb4ec4c7f33735a365","fixed":"2c3bbc8a1acd7b52a7785b51994a39aa336e2c08","status":"affected"},{"type":"git","introduced":"8b0c250be489dcbf1a3a33bb4ec4c7f33735a365","fixed":"428846fffb806a2c1e7f5f9bb976964f011c8803","status":"affected"},{"type":"git","introduced":"8b0c250be489dcbf1a3a33bb4ec4c7f33735a365","fixed":"1da13ac31040f1fb7365e994f84a6b2e32043363","status":"affected"},{"type":"git","introduced":"8b0c250be489dcbf1a3a33bb4ec4c7f33735a365","fixed":"3fee2a5ef405f08ea3d87d2014ae7d38e61dd06f","status":"affected"},{"type":"git","introduced":"8b0c250be489dcbf1a3a33bb4ec4c7f33735a365","fixed":"d655ef174056457d1c3bc06b4405097e0a9b3bf5","status":"affected"},{"type":"git","introduced":"8b0c250be489dcbf1a3a33bb4ec4c7f33735a365","fixed":"7d3df012573523cb2f38a65e3e00125d9869b390","status":"affected"},{"type":"git","introduced":"8b0c250be489dcbf1a3a33bb4ec4c7f33735a365","fixed":"732e3e10234cbe302d0dcbaa98c91c66628209cb","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.13","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.61","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.2","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","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/224f1c87086b9bc15bfc2dc0fd6f23df265eb976","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2c3bbc8a1acd7b52a7785b51994a39aa336e2c08","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/428846fffb806a2c1e7f5f9bb976964f011c8803","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1da13ac31040f1fb7365e994f84a6b2e32043363","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3fee2a5ef405f08ea3d87d2014ae7d38e61dd06f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d655ef174056457d1c3bc06b4405097e0a9b3bf5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7d3df012573523cb2f38a65e3e00125d9869b390","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/732e3e10234cbe302d0dcbaa98c91c66628209cb","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99488","url":"https://www.cve.org/CVERecord?id=CVE-2026-99488","licence":"CVE Terms of Use","modified":"2026-11-23T08:03:25.061Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99488","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99488","licence":"Public domain","modified":"2026-11-23T08:17:51.743Z"}],"updatedAt":"2026-11-25T22:59:52.090Z","epss":{"score":0.00218,"percentile":0.13089,"date":"2026-12-01T12:00:22.000Z"}}