{"id":"CVE-2026-99488","aliases":[],"title":"klist: avoid accesses after waking klist_remove()","originalDescription":"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().","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":{"score":0.00218,"percentile":0.13121},"exploitDb":null},"affected":[{"ecosystem":"vendor","name":"Linux","range":">=8b0c250be489dcbf1a3a33bb4ec4c7f33735a365, <1da13ac31040f1fb7365e994f84a6b2e32043363","fixed":"1da13ac31040f1fb7365e994f84a6b2e32043363"},{"ecosystem":"vendor","name":"Linux","range":">=8b0c250be489dcbf1a3a33bb4ec4c7f33735a365, <224f1c87086b9bc15bfc2dc0fd6f23df265eb976","fixed":"224f1c87086b9bc15bfc2dc0fd6f23df265eb976"},{"ecosystem":"vendor","name":"Linux","range":">=8b0c250be489dcbf1a3a33bb4ec4c7f33735a365, <2c3bbc8a1acd7b52a7785b51994a39aa336e2c08","fixed":"2c3bbc8a1acd7b52a7785b51994a39aa336e2c08"},{"ecosystem":"vendor","name":"Linux","range":">=8b0c250be489dcbf1a3a33bb4ec4c7f33735a365, <3fee2a5ef405f08ea3d87d2014ae7d38e61dd06f","fixed":"3fee2a5ef405f08ea3d87d2014ae7d38e61dd06f"},{"ecosystem":"vendor","name":"Linux","range":">=8b0c250be489dcbf1a3a33bb4ec4c7f33735a365, <428846fffb806a2c1e7f5f9bb976964f011c8803","fixed":"428846fffb806a2c1e7f5f9bb976964f011c8803"},{"ecosystem":"vendor","name":"Linux","range":">=8b0c250be489dcbf1a3a33bb4ec4c7f33735a365, <732e3e10234cbe302d0dcbaa98c91c66628209cb","fixed":"732e3e10234cbe302d0dcbaa98c91c66628209cb"},{"ecosystem":"vendor","name":"Linux","range":">=8b0c250be489dcbf1a3a33bb4ec4c7f33735a365, <7d3df012573523cb2f38a65e3e00125d9869b390","fixed":"7d3df012573523cb2f38a65e3e00125d9869b390"},{"ecosystem":"vendor","name":"Linux","range":">=8b0c250be489dcbf1a3a33bb4ec4c7f33735a365, <d655ef174056457d1c3bc06b4405097e0a9b3bf5","fixed":"d655ef174056457d1c3bc06b4405097e0a9b3bf5"}],"references":[{"url":"https://git.kernel.org/stable/c/3fee2a5ef405f08ea3d87d2014ae7d38e61dd06f","type":"other"},{"url":"https://git.kernel.org/stable/c/d655ef174056457d1c3bc06b4405097e0a9b3bf5","type":"other"},{"url":"https://git.kernel.org/stable/c/7d3df012573523cb2f38a65e3e00125d9869b390","type":"other"},{"url":"https://git.kernel.org/stable/c/732e3e10234cbe302d0dcbaa98c91c66628209cb","type":"other"},{"url":"https://git.kernel.org/stable/c/224f1c87086b9bc15bfc2dc0fd6f23df265eb976","type":"other"},{"url":"https://git.kernel.org/stable/c/2c3bbc8a1acd7b52a7785b51994a39aa336e2c08","type":"other"},{"url":"https://git.kernel.org/stable/c/428846fffb806a2c1e7f5f9bb976964f011c8803","type":"other"},{"url":"https://git.kernel.org/stable/c/1da13ac31040f1fb7365e994f84a6b2e32043363","type":"other"}],"sources":[{"name":"nvd","at":"2026-11-23T08:46:27.265Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99488","license":"NVD terms of use","firstSeenAt":"2026-11-19T15:43:48.143Z"},{"name":"cvelistV5","at":"2026-11-23T21:30:54.674Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99488","license":"CVE Terms of Use","firstSeenAt":"2026-11-19T15:00:33.962Z"}],"firstSeenAt":"2026-11-19T15:00:33.962Z","publishedAt":"2026-11-19T14:43:27.553Z","modifiedAt":"2026-11-23T08:17:51.743Z"}