Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2B4852BDC0E for ; Wed, 18 Feb 2026 14:54:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771426475; cv=none; b=EgzjLl+0b0u7JAPoYBz+RwcovSoMvk+ejJkxn+SbHoEF4WrZn2/2iRrn4w0+wV9huUIGuQbvihngKy89DgSci0UM+YvTPFiM49RkTvwM58dO8K81Z26jezZPJVGR/Rt0k6zOs6J9jnaHHsPcSorpCODpKLRu5UomwMN1Qtd1sa0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771426475; c=relaxed/simple; bh=fgKHgtEuUeGivSACdH7clEBgDo4wI63iYcW58LRTmeY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cQ143qZuqGRINvshQsTBk/AomqWo5xMzrBsv/sFrdmeihYl12f+CweAGRnIz24LVKmc0NM75k4bFxtdxywsyHufEhExFKa8k2JyK3QgFHH/TC32zuVoBvV5gJtmWGvzcRYGZptFpWI41F50pcpYWsta/ncn2qIoZhzGPAHEifI4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=D/wp4aV4; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="D/wp4aV4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8937CC116D0; Wed, 18 Feb 2026 14:54:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1771426475; bh=fgKHgtEuUeGivSACdH7clEBgDo4wI63iYcW58LRTmeY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=D/wp4aV45nGvhJUDHMQTvIZrzxEg39jvIKUapaWZjOWNRiHeDaNPgPj0h044+M+C7 5M04oPGuvFdG4hxmLRXh3JwUWnhcKjuWuwjntWbtT7krwfvBmhttF42Okh+W4qKPVT fv8tPHvpWOybH9QWBPPzDT1kaTWqEqSUGuBoBEgg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23225: sched/mmcid: Don't assume CID is CPU owned on mode switch Date: Wed, 18 Feb 2026 15:54:14 +0100 Message-ID: <2026021807-CVE-2026-23225-2a27@gregkh> X-Mailer: git-send-email 2.53.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=2639; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=F9MN7jNfXOElWLrA5WRp7YN67gNn4Xs7c/jxnYOrvck=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlTL/U7z9t4eVX2wa0daX3u0k7RSculNR5tlpKPqPLKs I3anS7dEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNxuMOw4ND6QNUVeR62SVWb si9fsflx5+NyTob5caa5oqI1BVtnXFJYxX4lZRtfB5sFAA== 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: sched/mmcid: Don't assume CID is CPU owned on mode switch Shinichiro reported a KASAN UAF, which is actually an out of bounds access in the MMCID management code. CPU0 CPU1 T1 runs in userspace T0: fork(T4) -> Switch to per CPU CID mode fixup() set MM_CID_TRANSIT on T1/CPU1 T4 exit() T3 exit() T2 exit() T1 exit() switch to per task mode ---> Out of bounds access. As T1 has not scheduled after T0 set the TRANSIT bit, it exits with the TRANSIT bit set. sched_mm_cid_remove_user() clears the TRANSIT bit in the task and drops the CID, but it does not touch the per CPU storage. That's functionally correct because a CID is only owned by the CPU when the ONCPU bit is set, which is mutually exclusive with the TRANSIT flag. Now sched_mm_cid_exit() assumes that the CID is CPU owned because the prior mode was per CPU. It invokes mm_drop_cid_on_cpu() which clears the not set ONCPU bit and then invokes clear_bit() with an insanely large bit number because TRANSIT is set (bit 29). Prevent that by actually validating that the CID is CPU owned in mm_drop_cid_on_cpu(). The Linux kernel CVE team has assigned CVE-2026-23225 to this issue. Affected and fixed versions =========================== Fixed in 6.19.1 with commit 81f29975631db8a78651b3140ecd0f88ffafc476 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-23225 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: kernel/sched/core.c kernel/sched/sched.h 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/81f29975631db8a78651b3140ecd0f88ffafc476 https://git.kernel.org/stable/c/1e83ccd5921a610ef409a7d4e56db27822b4ea39