Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C3DE949F128 for ; Thu, 24 Sep 2026 15:12:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790262751; cv=none; b=YwOzeZUETXnAb4htWPzVe/fNKk1byqHbv8f6x3Ch0ZtIdCCd6ooMLmR7UWiA9gPbDO08nn4FEb11k+8/JbxmkukWFF1lB7ljj/mS5DDlD5HBnb2DQ+3LHSkEwbX1SBjU69i+2YJLoKuaJ0SGjQy1EPy2MaC9o+9tn5byVcSVNlI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790262751; c=relaxed/simple; bh=0tQeoUkguPzPO7TLL3rXAaVT6FsrzzNHlgvnBbQt+50=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Vca7o8qsgItk14+skprRFnkenpvX/8Zxgxeb+n9/yo5XSuMTxpranIpCiJtLbJjAHtNN8pqjPUne3S84ye9ll/x+AnL7uG5BTaANT89gyK/EU7AMOA6FLpRR7ur6y/aAFxks69CeyPRxqRE7lfURgq2135wxKcHy+Ahu135FbaA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dBXhVQ/R; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="dBXhVQ/R" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 051541F00893; Thu, 24 Sep 2026 15:12:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790262749; bh=CezIZ246z038D6JRgzkq3SVRMlFptBeSvtHFLs4HL7k=; h=From:To:Cc:Subject:Date:Reply-To; b=dBXhVQ/Rht4BlJJZcCDm8eN7Q4FnyKUj/ZpSIahnXTmpzaT4ASS72QfSaJPAKUZ0h IpZ6fh1vxehAUbFTCmO+iuHCsB10hEbXarDEtPpOFL4Cua8szB7J2I72BQGntsZ/In 0E+qGmyJ6G7tPEsj/AgLvpHipv4aakOvCkae9+fk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-93208: kasan: fix cache shrink race with CPU hotplug Date: Thu, 24 Sep 2026 17:10:44 +0200 Message-ID: <2026092443-CVE-2026-93208-f4ed@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=6113; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HckP7IEZqb4uCC7PA+baT3HlDumD1irhHsoIJ+yfPMU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlbbYv/TIlL3+R33Ijr20+pU7UqH1z7LlxM/z3f4MSea 0anZlaldcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE3BsZFiyvVno7V22X8LJT H94FSBw1yHl1v51hQVNrJdvf2Bks8w4t63MSFTy+8Oin3wA= 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: kasan: fix cache shrink race with CPU hotplug kasan_quarantine_remove_cache() first invokes per_cpu_remove_cache() on all online CPUs. Each callback moves objects belonging to the cache from cpu_quarantine to the CPU's shrink_qlist, where they can later be freed from task context. kmem_cache_destroy() invokes the quarantine removal path while holding cpus_read_lock(), but kmem_cache_shrink() does not. The latter can therefore race with CPU offlining as follows: kmem_cache_shrink() CPU hotplug ------------------- ----------- on_each_cpu() CPU1 moves objects to CPU1's shrink_qlist on_each_cpu() returns CPU1 goes offline kasan_cpu_offline() drains cpu_quarantine leaves shrink_qlist untouched for_each_online_cpu() skips CPU1 The objects left on CPU1's shrink_qlist are not returned to the slab allocator. This may prevent kmem_cache_shrink() from releasing slabs that would otherwise become empty. If CPU1 remains offline, a later kmem_cache_destroy() also skips the list and can report that the cache still contains objects. An intermittent occurrence was observed with a virtio-9p filesystem. The mount and umount commands both returned 0, but the kernel logged the following during the userspace-triggered teardown: [ 2994.380134][ T111] BUG 9p-fcall-cache-1 (Tainted: G B ): Objects remaining on __kmem_cache_shutdown() [ 2994.381140][ T111] Object 0xff11000004361118 @offset=4376 [ 2994.381607][ T111] Allocated in p9_fcall_init+0x201/0x400 age=19564 cpu=1 pid=104 [ 2994.382591][ T111] p9_fcall_init+0x201/0x400 [ 2994.382810][ T111] p9_tag_alloc+0x12f/0x700 [ 2994.382982][ T111] p9_client_prepare_req+0x102/0x3e0 [ 2994.383165][ T111] p9_client_rpc+0x1ab/0xa50 [ 2994.383334][ T111] p9_client_getattr_dotl+0xb0/0x1a0 [ 2994.383515][ T111] v9fs_vfs_getattr_dotl+0x115/0x360 [ 2994.383719][ T111] vfs_getattr_nosec+0x22c/0x3a0 [ 2994.383910][ T111] vfs_statx+0xd7/0x170 [ 2994.384062][ T111] vfs_fstatat+0x45/0x80 [ 2994.384215][ T111] __do_sys_newfstatat+0x84/0xe0 [ 2994.384386][ T111] do_syscall_64+0x115/0x6a0 [ 2994.384566][ T111] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 2994.399720][ T111] WARNING: mm/slub.c:1244 at __kmem_cache_shutdown+0x363/0x500, CPU#0: busybox/111 [ 2994.405655][ T111] Call Trace: [ 2994.406325][ T111] kmem_cache_destroy+0x73/0x1b0 [ 2994.406630][ T111] p9_client_destroy+0x271/0x3c0 [ 2994.407210][ T111] v9fs_session_close+0x3c/0x260 [ 2994.407409][ T111] v9fs_kill_super+0x48/0x90 [ 2994.407584][ T111] deactivate_locked_super+0xa3/0x160 [ 2994.407778][ T111] cleanup_mnt+0x1dd/0x3e0 Thus, a successful umount left objects in the 9p fcall cache and prevented the cache from being destroyed cleanly. Per-CPU shrink_qlist storage exists for every possible CPU, and each list is protected by its own raw spinlock. Iterate over possible CPUs so that a list populated before its CPU went offline is drained as well. for_each_possible_cpu() can do more work than for_each_online_cpu(), but this change only affects CONFIG_KASAN_GENERIC kernels. The extra work is limited to cache shrink and cache destruction paths and does not affect the normal allocation/free fast path. It adds one raw-spinlock-protected scan of each possible CPU's shrink list. These lists are normally empty; a non-empty list is traversed to remove objects belonging to the cache being shrunk or destroyed. The Linux kernel CVE team has assigned CVE-2026-93208 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 07d067e4f2ceb72b9f681995cc53828caaba9e6e and fixed in 6.6.157 with commit 7cd164f0e1bab0f8dd125c92ed4f19bbd6b92a4a Issue introduced in 5.19 with commit 07d067e4f2ceb72b9f681995cc53828caaba9e6e and fixed in 6.12.109 with commit 709c3646545e0a1f99a5816384c633f6552c5a98 Issue introduced in 5.19 with commit 07d067e4f2ceb72b9f681995cc53828caaba9e6e and fixed in 6.18.50 with commit 30e8cb8598aa41b1b9f8803081d2ae5e5369c0f3 Issue introduced in 5.19 with commit 07d067e4f2ceb72b9f681995cc53828caaba9e6e and fixed in 7.2.4 with commit 3119d58e4ef8719d669911d38a53fc00086ac48b Issue introduced in 5.19 with commit 07d067e4f2ceb72b9f681995cc53828caaba9e6e and fixed in 7.3-rc1 with commit 8790303cbaac52a11dfed4aab261f8ea60682525 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-93208 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: mm/kasan/quarantine.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/7cd164f0e1bab0f8dd125c92ed4f19bbd6b92a4a https://git.kernel.org/stable/c/709c3646545e0a1f99a5816384c633f6552c5a98 https://git.kernel.org/stable/c/30e8cb8598aa41b1b9f8803081d2ae5e5369c0f3 https://git.kernel.org/stable/c/3119d58e4ef8719d669911d38a53fc00086ac48b https://git.kernel.org/stable/c/8790303cbaac52a11dfed4aab261f8ea60682525