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 CAF8F3B6C17 for ; Wed, 25 Mar 2026 10:31:38 +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=1774434698; cv=none; b=uWoRZP4+eO2IRAKF0GuaMbBHGfJ6Y9S0SVukb9Q7BlUOjnEP9IFQ5fW6COok9aT8+0xZ73jGWRz7dXGugoFrE5CnOYf1Bh6QULo6NAVYz+t1qUgh4KPXag2hHJwrQ+IjQYSJaz/qO2BgC0iUbpN74Sc6fa3DRPkjYFoxU6V4C78= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774434698; c=relaxed/simple; bh=xBug6kJ6wJHSpuXBJW284YAxpzfy8HJi8sKp7xp6+do=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NGcGSrU+esMT83zaJyOmc/kAOGPeF4B8EapNbQJEXqCmSGw3oBtbefuzM7gJbpd/MjThRWNvhHaX8t/0+lGuTC7thVbwRw+wTQJePizdAxstzL1f9wKeDX4KNTRJabGHdv8KuLyooZbYhfUPZMsZ0s7UX3MdFEELO/aSdGjvCys= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=v6nyWKi9; 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="v6nyWKi9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A1F0C4CEF7; Wed, 25 Mar 2026 10:31:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774434698; bh=xBug6kJ6wJHSpuXBJW284YAxpzfy8HJi8sKp7xp6+do=; h=From:To:Cc:Subject:Date:Reply-To:From; b=v6nyWKi9iebAksKnQ3KCgYLSku4baYY12wFhIM02CHZDHL1LqQzOKzK3ZJ2rOYwAM EX9WBrEvdt+SPQUoRVy0URF9pTp4l/mWZ8PagCggxge1DZ5j5+h68+nM+TMRvqddyj ilkliNpJ1BV+PPJ18oiYnzJu2mtH7flNR8XUTgfk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23371: sched/deadline: Fix missing ENQUEUE_REPLENISH during PI de-boosting Date: Wed, 25 Mar 2026 11:27:55 +0100 Message-ID: <2026032541-CVE-2026-23371-1b32@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=3701; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=x2SGUWQKmDifz2Lmn+7yUKyLkpwjZbL7+1C+7J4fY8Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmHdyQK1q58Oj/5hNm5jDWeB13uftyhuChc+IIwi8lOd UmPVeG3OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiigsYFmyTXrHmOUOru9Wb 3fk9J36ukVm7SIphvp+s5bydbsnbJM8Jiieb8tkLnxDbCwA= 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/deadline: Fix missing ENQUEUE_REPLENISH during PI de-boosting Running stress-ng --schedpolicy 0 on an RT kernel on a big machine might lead to the following WARNINGs (edited). sched: DL de-boosted task PID 22725: REPLENISH flag missing WARNING: CPU: 93 PID: 0 at kernel/sched/deadline.c:239 dequeue_task_dl+0x15c/0x1f8 ... (running_bw underflow) Call trace: dequeue_task_dl+0x15c/0x1f8 (P) dequeue_task+0x80/0x168 deactivate_task+0x24/0x50 push_dl_task+0x264/0x2e0 dl_task_timer+0x1b0/0x228 __hrtimer_run_queues+0x188/0x378 hrtimer_interrupt+0xfc/0x260 ... The problem is that when a SCHED_DEADLINE task (lock holder) is changed to a lower priority class via sched_setscheduler(), it may fail to properly inherit the parameters of potential DEADLINE donors if it didn't already inherit them in the past (shorter deadline than donor's at that time). This might lead to bandwidth accounting corruption, as enqueue_task_dl() won't recognize the lock holder as boosted. The scenario occurs when: 1. A DEADLINE task (donor) blocks on a PI mutex held by another DEADLINE task (holder), but the holder doesn't inherit parameters (e.g., it already has a shorter deadline) 2. sched_setscheduler() changes the holder from DEADLINE to a lower class while still holding the mutex 3. The holder should now inherit DEADLINE parameters from the donor and be enqueued with ENQUEUE_REPLENISH, but this doesn't happen Fix the issue by introducing __setscheduler_dl_pi(), which detects when a DEADLINE (proper or boosted) task gets setscheduled to a lower priority class. In case, the function makes the task inherit DEADLINE parameters of the donoer (pi_se) and sets ENQUEUE_REPLENISH flag to ensure proper bandwidth accounting during the next enqueue operation. The Linux kernel CVE team has assigned CVE-2026-23371 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit 2279f540ea7d05f22d2f0c4224319330228586bc and fixed in 6.19.7 with commit ba1c22924ddcc280672a2a06a9ca99ee3a1b92c3 Issue introduced in 5.10 with commit 2279f540ea7d05f22d2f0c4224319330228586bc and fixed in 7.0-rc3 with commit d658686a1331db3bb108ca079d76deb3208ed949 Issue introduced in 4.19.257 with commit 3cc3d77dc541181f97f1dc96d2977ef8359fd760 Issue introduced in 5.4.212 with commit d2b65976bf1ae9d0d9dd5770cd01695559438309 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-23371 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/syscalls.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/ba1c22924ddcc280672a2a06a9ca99ee3a1b92c3 https://git.kernel.org/stable/c/d658686a1331db3bb108ca079d76deb3208ed949