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 3D828490BE2 for ; Sun, 18 Oct 2026 16:25:58 +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=1792340760; cv=none; b=GzhM3pFveh0ZcTtW5gjSj6F8BgaQPk3wxjPJBS8vt3J+/tV+sa/aleA3VUF3SVAdS0qUv+JG5TkjfrqyCGaU/JCCMyAQAjozKWZ1kFt4g/Q1wZvFQkHNUt/ZAc+FX3EnvMJoxSEA0eCKjYjn1M/GhA/ouBR2CLGp4NUA6K4JcwY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792340760; c=relaxed/simple; bh=gLSBVHEEkj0a+99TeRSLewmdl7Iq6MXq27xvbBYEF2o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SVXZ9gg4W3lpEMFI/KfePWhIsKwHFyTBEWDpLsJGq7JEtDTcmQ9bryYaxOw4J/BcNCdqRx39H+yyU6PGxCNNST4w8PBT1Lddg4oYf77z6gSsMAMGray+9nB7ESFKkWddW4Frx4nyhl9y/VCfVJQs7ceyraXohi2pfzYfoIRtrA8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=o28G1ZEr; 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="o28G1ZEr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ECB291F000C4; Sun, 18 Oct 2026 16:25:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792340758; bh=6F1l3JnXLS6HhC8HzAmyP/AVpXkRRx2rC6vnYkVCRII=; h=From:To:Cc:Subject:Date:Reply-To; b=o28G1ZErbWJRh4HFfsx7rbHyg7VJHX3aaFR+mkjmY/yhs51za3l7CmEHkCbZWjyUZ iG3MtPRlJxzUCDiHQCCUml3rM/iXOdvC8VJIkfNS3cPJXyXBmrTz8J1iKVQvai3seY JzaBF9IWuGqwJlhNdkKqHqhEGcIo1jtOhbOSVp8A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98864: sched_ext: Wait for SCX_OPSS_DISPATCHING before reenqueueing a task Date: Sun, 18 Oct 2026 17:47:19 +0200 Message-ID: <2026101837-CVE-2026-98864-2abb@gregkh> X-Mailer: git-send-email 2.56.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=2563; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UTFPJk26G8WZHceZqmCgnkOtxQSgjyFOvMfldCdBDvw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXqZOady8eprjm3VHby7JPxLJzO0Z7RShv6tCfe/ej ykzWTQ/dMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEPj1mmKdov/TdiR1Hv+vq H97gonjFQ+KOvCfDggVTu1+5irJMvRgQvG7CGVcH75I5SwA= 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: Wait for SCX_OPSS_DISPATCHING before reenqueueing a task ebf1ccff79c4 ("sched_ext: Fix ops.dequeue() semantics") moved the final ops_state store in scx_dispatch_enqueue() after the DSQ unlock so that the custody update and ops.dequeue() precede it. A task can thus be found on a DSQ while still SCX_OPSS_DISPATCHING. The dequeue and core-sched pick paths wait for the state to clear in ops_dequeue() but the reenqueue paths don't. A reenqueue in that window runs ops.enqueue() and sets SCX_OPSS_QUEUED before the dispatch has completed. The dispatcher's final store then overwrites it with SCX_OPSS_NONE and finish_dispatch() drops every later dispatch of the task. Wait for SCX_OPSS_DISPATCHING to clear before dequeueing a task for reenqueue, the same way ops_dequeue() does. The Linux kernel CVE team has assigned CVE-2026-98864 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit ebf1ccff79c43f860cbd2f9d6cfab9a462d0cb2d and fixed in 7.2.10 with commit 43457bf6550044c40bd6d3fcdf9ea66f5a55d139 Issue introduced in 7.1 with commit ebf1ccff79c43f860cbd2f9d6cfab9a462d0cb2d and fixed in 7.3-rc5 with commit 7de9a6fb44eae4f05e68c805d58b9c618815adfa 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-98864 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/ext.c kernel/sched/ext/internal.h kernel/sched/ext/sub.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/43457bf6550044c40bd6d3fcdf9ea66f5a55d139 https://git.kernel.org/stable/c/7de9a6fb44eae4f05e68c805d58b9c618815adfa