Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795100228; b=i4SyuN4BbAn52dwYFvkNbfz1PKrpho42Ph6/KnYmRErkzODd9Xk9KAMQKT55s1i5jTBm r3uO1UA6YeuB0kskPIELVf5XE1aDqaxoKT8iQDZoIWkSFa63cFG6om7ye7fHaRqTjea+c W8DZLOt5/iUNJOTs1xYnPcMnO4Lsp4c68WROSWVmrfsW8IjyuWr7zTwQLyY4vwG996Uxr DSIfA3bTaLB3Q+9g3T63f6vwItjgWDfQR3PUY8HWCqVETLFcviAS1r/RV1BYXrbxiqD6v RTuZ4RNxw5FHsXJdZqffLRwC25lH9kOdx3lD5rW9FDmu7O3k6W8BFsjUk4yrhjec7fg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795100228; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=U87a+NfVk2zaIfOYJgj5CGmsT+Ls7EErc70SVOBZEL0=; b=GLQoVGWM0mp4inAv97es9TNXWKyqbSgDqt09B3fzpUfEYkVpzZDjMb4djljsNmgm5nDX bJQ2yA41/S/pvBRDm1I4/YwEWLfUA+Fg2qUY9VGaGoPO0Uh+gN8HnHYCaWzkPHeCoLuVs gC2XFz9FAVjWWSTPRjswtEIv0mMH7nnwDLi3fdAmbMtFMrSBsKWuRhcQLtf6bEv+ErEFM MOTp2HF3XMkLy/oljwKfc7fafutNuFfhmslxGrhBxmNh5Va7Zj/cIpLmZlVdkMUki5PpG 6uKkGNgqdaC9mP59hNSgsrhLVV6zdXOdRePQBfblofK7KN+WQAp2TUea9H21cVXf7Fw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Z3ZkJyJ9; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 94CE6606A33D for ; Thu, 19 Nov 2026 14:57:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Z3ZkJyJ9 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88A601F000CB; Thu, 19 Nov 2026 14:57:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795100228; bh=U87a+NfVk2zaIfOYJgj5CGmsT+Ls7EErc70SVOBZEL0=; h=From:To:Cc:Subject:Date:Reply-To; b=Z3ZkJyJ9pSi+wCd2DjRE+tiE6K3VyzvB7zCuziiXC4YS6fLDFwIMBCn9yzFl7LqEd m2hPd+wa1HzdT347vqcbPF5LBz6QvGLXKSO7BcNLpK5QIkppnEtWBAvCKoi5dlS4vy GV7zJvE54D4fkK5uef2jQv+nso6uiouLolTKOnq8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99488: klist: avoid accesses after waking klist_remove() Date: Thu, 19 Nov 2026 15:26:26 +0100 Message-ID: <2026111914-CVE-2026-99488-2b0b@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3266; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=X056iML5sjRVyg65o0gmFHArz3JcRzhUstSczfK56/I=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2fq+V2Qe2GC1sHTWyhPaU0/sdWjY/m+6wyKDlabyJ lvfRL6X64hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJJGYyzLPjtJ3Ec/5m69kH 3NKs31YGiO+Pv8UwV2p54+Q9q7umbvSwP242a5d6fhCfKgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In 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(). The Linux kernel CVE team has assigned CVE-2026-99488 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.13 with commit 8b0c250be489dcbf1a3a33bb4ec4c7f33735a365 and fixed in 6.12.117 with commit 3fee2a5ef405f08ea3d87d2014ae7d38e61dd06f Issue introduced in 2.6.13 with commit 8b0c250be489dcbf1a3a33bb4ec4c7f33735a365 and fixed in 6.18.61 with commit d655ef174056457d1c3bc06b4405097e0a9b3bf5 Issue introduced in 2.6.13 with commit 8b0c250be489dcbf1a3a33bb4ec4c7f33735a365 and fixed in 7.3.2 with commit 7d3df012573523cb2f38a65e3e00125d9869b390 Issue introduced in 2.6.13 with commit 8b0c250be489dcbf1a3a33bb4ec4c7f33735a365 and fixed in 7.4-rc1 with commit 732e3e10234cbe302d0dcbaa98c91c66628209cb Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-99488 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: lib/klist.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/3fee2a5ef405f08ea3d87d2014ae7d38e61dd06f https://git.kernel.org/stable/c/d655ef174056457d1c3bc06b4405097e0a9b3bf5 https://git.kernel.org/stable/c/7d3df012573523cb2f38a65e3e00125d9869b390 https://git.kernel.org/stable/c/732e3e10234cbe302d0dcbaa98c91c66628209cb