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 E17DB312837 for ; Wed, 24 Jun 2026 16:34:31 +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=1782318873; cv=none; b=GQEa2MUhYNDgqrQe63Fd4Ixxa9c7g9SmhAU0MyWrAGxonF813GA1xF7KRxugPCdcZLfl0MUVtVc/etFIIKMAevN1x0xZxLTAueeQ6AB9Idf0zjcCF2HKR7TgAR7kPt4e2O3Y1Iocm+5jmZ/254AcScafXlmsi9PRYBQV82jIuQQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782318873; c=relaxed/simple; bh=RuK34cbL6Naqz45DGUgUAd0quM9PhQDwU85HcfuGXmk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=J6RuFYUouCTWjXHgxsqD6FgIRJXphjnI5ak8MvhRQuY2rQIKMeWwtSSNZLaEQxeOElekNZIatnxQBUT34z8JxjqYc72ACwqSudqBXKp3nkJTOCplRWMI+XC91+KWOeqOjfYm8gBl7tPKGjMQ0TQyiKJykzAoiCbjTNnN2NWyP7Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XO+WK6ps; 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="XO+WK6ps" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 324061F000E9; Wed, 24 Jun 2026 16:34:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782318871; bh=Z9QwcshHrAZxcVki8ks93OukfYnf+3buMPXsWR3QYgU=; h=From:To:Cc:Subject:Date:Reply-To; b=XO+WK6pscPlMBT1XLrduOADNCzVOb0GFuBIXZ7xokNzfgHkorx8mvtDuCA5Sz/sLv qV6DfR+ZmLSjCQW9MtWc+oUYo1Pkf+FbsLPmcidHf9z31hm6pIKuoDIRZrxj7h7BXl QRwf23QN88BHM8tHk2Wn4QGaHmO9G5EcwmS4nT14= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-52980: sched/fair: Clear rel_deadline when initializing forked entities Date: Wed, 24 Jun 2026 17:30:04 +0100 Message-ID: <2026062441-CVE-2026-52980-f55b@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=4357; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pJk/lHlqt6g05OrTz89XREzeuh1CNyKLdFbCPd+xYFE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2rF81Ge6+rc1vLI9Ikz1yeQEj13uu3pz1gvHdHslst T6Ffdc7YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCL3lBkWXNun/6oyIkh6yVLB +8dnrU2dfH2hMcP8qveXs+XebuM4etdAvGahZ7j9QR5LAA== 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/fair: Clear rel_deadline when initializing forked entities A yield-triggered crash can happen when a newly forked sched_entity enters the fair class with se->rel_deadline unexpectedly set. The failing sequence is: 1. A task is forked while se->rel_deadline is still set. 2. __sched_fork() initializes vruntime, vlag and other sched_entity state, but does not clear rel_deadline. 3. On the first enqueue, enqueue_entity() calls place_entity(). 4. Because se->rel_deadline is set, place_entity() treats se->deadline as a relative deadline and converts it to an absolute deadline by adding the current vruntime. 5. However, the forked entity's deadline is not a valid inherited relative deadline for this new scheduling instance, so the conversion produces an abnormally large deadline. 6. If the task later calls sched_yield(), yield_task_fair() advances se->vruntime to se->deadline. 7. The inflated vruntime is then used by the following enqueue path, where the vruntime-derived key can overflow when multiplied by the entity weight. 8. This corrupts cfs_rq->sum_w_vruntime, breaks EEVDF eligibility calculation, and can eventually make all entities appear ineligible. pick_next_entity() may then return NULL unexpectedly, leading to a later NULL dereference. A captured trace shows the effect clearly. Before yield, the entity's vruntime was around: 9834017729983308 After yield_task_fair() executed: se->vruntime = se->deadline the vruntime jumped to: 19668035460670230 and the deadline was later advanced further to: 19668035463470230 This shows that the deadline had already become abnormally large before yield_task_fair() copied it into vruntime. rel_deadline is only meaningful when se->deadline really carries a relative deadline that still needs to be placed against vruntime. A freshly forked sched_entity should not inherit or retain this state. Clear se->rel_deadline in __sched_fork(), together with the other sched_entity runtime state, so that the first enqueue does not interpret the new entity's deadline as a stale relative deadline. The Linux kernel CVE team has assigned CVE-2026-52980 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit 82e9d0456e06cebe2c89f3c73cdbc9e3805e9437 and fixed in 6.12.91 with commit c71bf35caba12bfd9bc23e32b0bcd9e02d1cf1ac Issue introduced in 6.12 with commit 82e9d0456e06cebe2c89f3c73cdbc9e3805e9437 and fixed in 6.18.33 with commit f3c16e1f4a314a20717ab90a41885f8111a242ab Issue introduced in 6.12 with commit 82e9d0456e06cebe2c89f3c73cdbc9e3805e9437 and fixed in 7.0.10 with commit 8f4a16200785f49cf02c5b71bdfe7a9dab63f23a Issue introduced in 6.12 with commit 82e9d0456e06cebe2c89f3c73cdbc9e3805e9437 and fixed in 7.1 with commit 3da56dc063cd77b9c0b40add930767fab4e389f3 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-52980 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 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/c71bf35caba12bfd9bc23e32b0bcd9e02d1cf1ac https://git.kernel.org/stable/c/f3c16e1f4a314a20717ab90a41885f8111a242ab https://git.kernel.org/stable/c/8f4a16200785f49cf02c5b71bdfe7a9dab63f23a https://git.kernel.org/stable/c/3da56dc063cd77b9c0b40add930767fab4e389f3