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 5BF48330B3E for ; Mon, 22 Dec 2025 16:14:58 +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=1766420098; cv=none; b=VANiWlBWmaRi6sc3LSFM8nfsUuPFZSMPALwcsdGmEqgizfccUvVgQcE4P0b4zHgDeEKyFKZU9yymIWfk8wHo0KRVBkAwVGKle3iE1HKpQ0dPzm/Kvm6U8c0NKT0zV5yJandfg6kiTBBB3hhjoUrAmLg89K1FZNEk+TI4dbCzftY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766420098; c=relaxed/simple; bh=E2kss8xOEG2KR0shcSUudL0HrgOAgrL/hVDOBHHokGI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=G6yb3hb46dwLKu5cnAJ91SByFWRDRo7/5AIXZjTKBkVlBEhB01dpUYZ2Df5k3k5qr+EZZxQTppCkNEHvQ/WB5ipAIRtXaAuLWj2/4/+gfq0fbCyPkEAH5XkRsm3SVKoi6WsrkGJU1mNflAYpN0+uWA9Kxr3p01fSDkWQTX5CirE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TiNm+Lsc; 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="TiNm+Lsc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8547BC4CEF1; Mon, 22 Dec 2025 16:14:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766420098; bh=E2kss8xOEG2KR0shcSUudL0HrgOAgrL/hVDOBHHokGI=; h=From:To:Cc:Subject:Date:Reply-To:From; b=TiNm+LscI3dZLcDzMUekKutX7W1lqIJqmg8irIVmFL6lpQLviP0tD4AFsz2vXgHib aiRFdEPsZiSuL0MITQ+4RhOygIppXgWbOJ6EFRAksCix/tLn2xyO35nuvL1DsNG4je eeXK0hyu/A2Ujd+iDXRPQaq3LSgVRyPM8WEVSEO4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68333: sched_ext: Fix possible deadlock in the deferred_irq_workfn() Date: Mon, 22 Dec 2025 17:14:25 +0100 Message-ID: <2025122219-CVE-2025-68333-4689@gregkh> X-Mailer: git-send-email 2.52.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=2056; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4bIy27cbBUv0EzyIf5C+RMQ04ojSsgnz7L9nQ7GIAfE=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmeeTHHFLZ/21cQ5fbShzfOu93O16in7NnyhxOEJjSUH ChRDN3TEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABO57Mswv756dcfv7UvYV2hp 74k5/2/bij1XnzMsmLms83F79/nJ5+ckbA3Zeu3Wx1PpDwA= 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 possible deadlock in the deferred_irq_workfn() For PREEMPT_RT=y kernels, the deferred_irq_workfn() is executed in the per-cpu irq_work/* task context and not disable-irq, if the rq returned by container_of() is current CPU's rq, the following scenarios may occur: lock(&rq->__lock); lock(&rq->__lock); This commit use IRQ_WORK_INIT_HARD() to replace init_irq_work() to initialize rq->scx.deferred_irq_work, make the deferred_irq_workfn() is always invoked in hard-irq context. The Linux kernel CVE team has assigned CVE-2025-68333 to this issue. Affected and fixed versions =========================== Fixed in 6.17.12 with commit 600b4379b9a7ba41340d652211fb29699da4c629 Fixed in 6.18 with commit a257e974210320ede524f340ffe16bf4bf0dda1e 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-2025-68333 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.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/600b4379b9a7ba41340d652211fb29699da4c629 https://git.kernel.org/stable/c/a257e974210320ede524f340ffe16bf4bf0dda1e