klist: avoid accesses after waking klist_remove()

Summary

CVECVE-2026-99488
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-19 15:18:03 UTC
Updated2026-11-23 08:17:51 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: klist: avoid accesses after waking klist_remove() klist_remove() waits until a node is unreferenced so that its caller can free the containing object. klist_release() currently publishes waiter->woken and wakes the waiter before its final accesses to the waiter and node. klist_remove() can then return, allowing its stack waiter and the containing object to be freed or reused while klist_release() is still running. In particular, bus_remove_driver() can free drv->p while __device_attach() walks the same bus klist with bus_for_each_drv(). On an arm64 Cortex-A72 system, an unpatched 7.2.0-rc3 kernel with CONFIG_PREEMPT_RT=y and CONFIG_KASAN=y reproduced the bug through the in-tree I2C/at24 path. KASAN reported a use-after-free in klist_dec_and_del() reached from klist_next()/bus_for_each_drv() while at24 was being unregistered. Clear n_klist and take a task reference before publishing woken. Use release/acquire accesses for that publication and wake the referenced task. The task reference keeps the waiter task alive if it returns and exits before wake_up_process().

Risk And Classification

EPSS: 0.002180000 probability, percentile 0.123120000 (date 2026-11-23)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 8b0c250be489dcbf1a3a33bb4ec4c7f33735a365 224f1c87086b9bc15bfc2dc0fd6f23df265eb976 git Not specified
CNA Linux Linux affected 8b0c250be489dcbf1a3a33bb4ec4c7f33735a365 2c3bbc8a1acd7b52a7785b51994a39aa336e2c08 git Not specified
CNA Linux Linux affected 8b0c250be489dcbf1a3a33bb4ec4c7f33735a365 428846fffb806a2c1e7f5f9bb976964f011c8803 git Not specified
CNA Linux Linux affected 8b0c250be489dcbf1a3a33bb4ec4c7f33735a365 1da13ac31040f1fb7365e994f84a6b2e32043363 git Not specified
CNA Linux Linux affected 8b0c250be489dcbf1a3a33bb4ec4c7f33735a365 3fee2a5ef405f08ea3d87d2014ae7d38e61dd06f git Not specified
CNA Linux Linux affected 8b0c250be489dcbf1a3a33bb4ec4c7f33735a365 d655ef174056457d1c3bc06b4405097e0a9b3bf5 git Not specified
CNA Linux Linux affected 8b0c250be489dcbf1a3a33bb4ec4c7f33735a365 7d3df012573523cb2f38a65e3e00125d9869b390 git Not specified
CNA Linux Linux affected 8b0c250be489dcbf1a3a33bb4ec4c7f33735a365 732e3e10234cbe302d0dcbaa98c91c66628209cb git Not specified
CNA Linux Linux affected 2.6.13 Not specified
CNA Linux Linux unaffected 2.6.13 semver Not specified
CNA Linux Linux unaffected 5.10.275 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.117 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.61 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.2 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/428846fffb806a2c1e7f5f9bb976964f011c8803 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/1da13ac31040f1fb7365e994f84a6b2e32043363 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/224f1c87086b9bc15bfc2dc0fd6f23df265eb976 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d655ef174056457d1c3bc06b4405097e0a9b3bf5 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/3fee2a5ef405f08ea3d87d2014ae7d38e61dd06f 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/7d3df012573523cb2f38a65e3e00125d9869b390 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/732e3e10234cbe302d0dcbaa98c91c66628209cb 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/2c3bbc8a1acd7b52a7785b51994a39aa336e2c08 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report