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 E7BBE3C0635 for ; Fri, 1 May 2026 14:17:22 +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=1777645043; cv=none; b=LYCHBgmemSV8HyTwEg87QVqA+DcdrGgji7TeitTFRC4ZX0Q7jGP+WJA2wkavyhd4fQvct3CcQ0VB62N+u4E6QxY1FpgKbPSVa5tgeE6NoB21mTBkNkSzykKvz7PyWR2UoIESiMZYPrZe/v0/wEQvpxzmoVXzn+R4AkBOJyiOoDg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645043; c=relaxed/simple; bh=svXlcW4NA6qReQL+SzWSlsLck/gdGBG81NKgws45TTo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BEr2GeQKkcvIya481yZgBvR0XiuEhqwOihJVgd3iGEACVvKTOTwMMH/0tVEkNmLY+YVc6SHAB8ZHOkqp+UeOBMCQxI0MwqjVWOLItOoP5NtJvH0kXMjyMzW5XxgxHZ2n9bhx7HmCjc7wvB4VsIfgmDmOWP/VdJQxBpRkcYmL0W0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iSer3KYk; 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="iSer3KYk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4BCCBC2BCB4; Fri, 1 May 2026 14:17:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777645042; bh=svXlcW4NA6qReQL+SzWSlsLck/gdGBG81NKgws45TTo=; h=From:To:Cc:Subject:Date:Reply-To:From; b=iSer3KYk0ZpOXd5a04rAb1Pz1qeh/tse+y1U+7HciUhQF1unUIzP8yM2YHSYbL7gz dnWO03qiaHrY/FQwSjzkyXxpyG7plSAgP/g2F5Ar78yaRaXa9ZlKrWpCc3uHzWiFo/ ttshKoF/pxM9OEwS1xro+lQp13Nszq/D+66xfHwc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31734: sched_ext: Fix is_bpf_migration_disabled() false negative on non-PREEMPT_RCU Date: Fri, 1 May 2026 16:14:45 +0200 Message-ID: <2026050137-CVE-2026-31734-da05@gregkh> X-Mailer: git-send-email 2.54.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=2786; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=reXbhw+pCjw/OU5CUSABgYfi8y3pMInRU3qZyiQkJ8U=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlftvrOf3TnolLYqYV6QQaSm+bd33h/wnvdW2n3ZGXz5 HyvXnqzuyOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmMmsBw4Jrp3dLmaTpcnBL LA29bffVvnxqQy3DPDuT7QGbFDY4742tFdQ45ye0flfLNgA= 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_ext: Fix is_bpf_migration_disabled() false negative on non-PREEMPT_RCU Since commit 8e4f0b1ebcf2 ("bpf: use rcu_read_lock_dont_migrate() for trampoline.c"), the BPF prolog (__bpf_prog_enter) calls migrate_disable() only when CONFIG_PREEMPT_RCU is enabled, via rcu_read_lock_dont_migrate(). Without CONFIG_PREEMPT_RCU, the prolog never touches migration_disabled, so migration_disabled == 1 always means the task is truly migration-disabled regardless of whether it is the current task. The old unconditional p == current check was a false negative in this case, potentially allowing a migration-disabled task to be dispatched to a remote CPU and triggering scx_error in task_can_run_on_remote_rq(). Only apply the p == current disambiguation when CONFIG_PREEMPT_RCU is enabled, where the ambiguity with the BPF prolog still exists. The Linux kernel CVE team has assigned CVE-2026-31734 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 8e4f0b1ebcf2180ab594f204f01279a666dadf3b and fixed in 6.18.22 with commit 72c43eb2e334febe93018cfb68ae828f55c6e49e Issue introduced in 6.18 with commit 8e4f0b1ebcf2180ab594f204f01279a666dadf3b and fixed in 6.19.12 with commit b4992a9446bb9a639007bfd32bf5c5a7e30199e5 Issue introduced in 6.18 with commit 8e4f0b1ebcf2180ab594f204f01279a666dadf3b and fixed in 7.0 with commit 0c4a59df370bea245695c00aaae6ae75747139bd 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-31734 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/ext_idle.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/72c43eb2e334febe93018cfb68ae828f55c6e49e https://git.kernel.org/stable/c/b4992a9446bb9a639007bfd32bf5c5a7e30199e5 https://git.kernel.org/stable/c/0c4a59df370bea245695c00aaae6ae75747139bd