From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796290452; b=yeziSh9edkFwIXJOSsY/iqa4dAA/kT4gFEhy3zAgUYCXMt5C3Rc2zIZyFxYJ/llJXxvV zdU6Zesz1U6uGiL/QaCy3v9rK2TnPD1f6ssPAxAeaCunwspYrfi+6Qw5YtFy8e0+chMYc FmEovaHF+PJBx65KBqY9Bi52e8bJ9cxqZCj2gwWRqOQU/iCERyjKHQe3HoxX9Mtwo/U0v zdaA8CQs+0XzW9WgIx0qf1dzWRy+t/WYeCtLS1+3IzZK5i2+INd3cDszi+x5j2UqEvF+k kgjMOH5UCOryD8UrO6jhBnG1avlLlYYUAEzfF1LIh4TMhkG2eUJZHX0ykcMNSb+qjpw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796290452; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=Q4aZ11zi9MTbQDYGD4jMpVFRnF/8Xq68tUhMnzVd/O4=; b=M1mQAij/pp90iu8JorX4UrTPw1rXEdFJe3/8jyd09FfBP85ZXH5eHLTlCO5n83udYBbV YvFULk/0TEbw9WPR5P6lJv12O7MzhGVoZgXcep8nvuUrn2s59zA25/WtAh39NfN3llSrO eopHzEXOHYPW0VHLE5djbusJNn5q9JzACyrlB9MxBH23G01KZMe2zGKAIXcyJpwHrs226 qQbTn9onrNiZT+eClARBM0xkVWezQvDdNlfJR35l63F7CW1xO9n7vIhIV6tYmbppJ6L6n N7dPpeV9EBo/9BytkK9FHPqoUP/OP7IJsON8+hgnsdqNzq0PVplt2JVgTM7TaleCWFQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=wSGb6yiC; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B8B80606A32D for ; Thu, 3 Dec 2026 09:34:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=wSGb6yiC Received: by smtp.kernel.org (Postfix) with ESMTPSA id 035721F00893; Thu, 3 Dec 2026 09:34:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796290452; bh=Q4aZ11zi9MTbQDYGD4jMpVFRnF/8Xq68tUhMnzVd/O4=; h=From:To:Cc:Subject:Date:Reply-To; b=wSGb6yiCmHqogg/8xfEJCxb8alRMhF5j+niRSzTdZhE23mlIY9h4JHzJSP6GZ7PwY pEWC8UHAZVMRZyyAUx3CXWp8dhII2yflLSHPSct/jjp/yivlyggKk7YuCVx55nn/y9 r8YPZmfT1wj+1E4HcItfWM3/wo6cuXZNArWvLDxY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-143259: sched/deadline: Fix this_bw on class change of a dying task Date: Thu, 3 Dec 2026 10:21:35 +0100 Message-ID: <2026120325-CVE-2026-143259-e068@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2761; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kY50SfCLhH913d1q8Ghp5zxX/7AelormEXvU5JE1qUo=; b=owGbwMvMwCRo6H6F97bub03G02pJDNmCxkujzSUVDyYqOijumXPlqskNvaNPLjc+7D05Q020+ 4V8wuTyjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI1k+GBU0B+9l8834+Y3DK cb0d+cLcU1RvN8P8sBLuC1Wn5++wYRaqfGjD/+N/hdQLAA== 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 this_bw on class change of a dying task Moving a SCHED_DEADLINE task out of the class with sched_setscheduler(2) after it stored TASK_DEAD in do_task_dead(), but before __schedule() dequeued it, subtracts its bandwidth from the runqueue's this_bw twice. this_bw then stays short until reboot: __sub_rq_bw() warns about the underflow or about running_bw > this_bw, and GRUB reclaim for SCHED_FLAG_RECLAIM tasks on that CPU is miscomputed. The class change dequeues the still queued task with DEQUEUE_SAVE, which removes its bandwidth from running_bw and this_bw. switched_from_dl() then calls task_non_contending(), which, if the 0-lag time has passed, removes it from this_bw again because the task is TASK_DEAD. That removal is meant for the dying task's own DEQUEUE_SLEEP dequeue, which has removed nothing before it. Do the TASK_DEAD removal only on that dequeue path. Reproduced under QEMU on x86_64 and riscv64 by moving exiting deadline tasks to SCHED_OTHER in a loop; with this patch there is no warning. The Linux kernel CVE team has assigned CVE-2026-143259 to this issue. Affected and fixed versions =========================== Issue introduced in 4.13 with commit 8fd27231c3302e0c7e1907df1252db97b65eb241 and fixed in 7.3.7 with commit 40e644b33189a8a592e6f3cb6518867a53099b29 Issue introduced in 4.13 with commit 8fd27231c3302e0c7e1907df1252db97b65eb241 and fixed in 7.4-rc2 with commit 0c93e25ef11a9dee43f6076bd1f09771dc2b167e 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-143259 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/deadline.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/40e644b33189a8a592e6f3cb6518867a53099b29 https://git.kernel.org/stable/c/0c93e25ef11a9dee43f6076bd1f09771dc2b167e