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 4353F346FBC for ; Wed, 25 Mar 2026 10:28:29 +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=1774434509; cv=none; b=ZmHoIhhBeoOSUULN1FpPT2l1DhaG9ZQPuYrOxVfrdtlJacSrQwueM8FNG6Q2L94dHke940b1ckV5ZfYCNGlyxTXNg3D4qBNwM3pRPY4Q/DoGCF543Ldk/Wo1lzhPBXUYWCqsf4UeId00fiXPGOgsUD9V5bQCBx++wR3hf/OVnaA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774434509; c=relaxed/simple; bh=U3c+8tR29/veI0Bo71FKsyzNkHFriLx3zzWASA80oJY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FBdG2zNAnXcKLeMJh5Ra9pT6xLAnxvhnnummAr7eIaPF8RBCmmGETT1kNsoSZ/44c7RwxiA20MqCltnItG8qH9ZT7C5K4DZuL6tXL2gSphTAw+s0eZWlrM9hXpQEGVKl9gxEyqP6rLdGEu11bw3bC/C5KRxfkSE54oRThjdJCXk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=p1U2DaYP; 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="p1U2DaYP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CC9FC4CEF7; Wed, 25 Mar 2026 10:28:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774434509; bh=U3c+8tR29/veI0Bo71FKsyzNkHFriLx3zzWASA80oJY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=p1U2DaYPKWlCXAvum+eQq1ngiJc0+d5uknXaAY3KFgMufo5yrykmBMl3tATOYb3Me LM9TvcxLqWaJtYLZH75HzmMcc0r/5rm86iOg2aI+L1ohElxPe26u54ujcMoSIqZ6gV o3/SDEKnY7Pmd06YDwKmQ883WIlCB2TB5mSzUlxo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23311: perf/core: Fix invalid wait context in ctx_sched_in() Date: Wed, 25 Mar 2026 11:26:55 +0100 Message-ID: <2026032529-CVE-2026-23311-8c0b@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=3140; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hqcshCGwU7uRItbSa6hNEyZfJF2dUdKBJg08a/NM/8g=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmHd4S++bbDyPynZZL1d9Wi2e/5Hj5xWv+zPzb6U4btC qVn/Hd1O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAixwMZ5kqaXz3B1xki+lgx ZS97wt9ANekIToYFC5L47tRzr+3SPyh/8pHri7e/9v/gAAA= 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: perf/core: Fix invalid wait context in ctx_sched_in() Lockdep found a bug in the event scheduling when a pinned event was failed and wakes up the threads in the ring buffer like below. It seems it should not grab a wait-queue lock under perf-context lock. Let's do it with irq_work. [ 39.913691] ============================= [ 39.914157] [ BUG: Invalid wait context ] [ 39.914623] 6.15.0-next-20250530-next-2025053 #1 Not tainted [ 39.915271] ----------------------------- [ 39.915731] repro/837 is trying to lock: [ 39.916191] ffff88801acfabd8 (&event->waitq){....}-{3:3}, at: __wake_up+0x26/0x60 [ 39.917182] other info that might help us debug this: [ 39.917761] context-{5:5} [ 39.918079] 4 locks held by repro/837: [ 39.918530] #0: ffffffff8725cd00 (rcu_read_lock){....}-{1:3}, at: __perf_event_task_sched_in+0xd1/0xbc0 [ 39.919612] #1: ffff88806ca3c6f8 (&cpuctx_lock){....}-{2:2}, at: __perf_event_task_sched_in+0x1a7/0xbc0 [ 39.920748] #2: ffff88800d91fc18 (&ctx->lock){....}-{2:2}, at: __perf_event_task_sched_in+0x1f9/0xbc0 [ 39.921819] #3: ffffffff8725cd00 (rcu_read_lock){....}-{1:3}, at: perf_event_wakeup+0x6c/0x470 The Linux kernel CVE team has assigned CVE-2026-23311 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit f4b07fd62d4d11d57a15cb4ae01b3833282eb8f6 and fixed in 6.18.17 with commit c67ab059953e3b66cb17ddd6524c23f9e1f6526d Issue introduced in 6.15 with commit f4b07fd62d4d11d57a15cb4ae01b3833282eb8f6 and fixed in 6.19.7 with commit 825f218ca70ef394c2b8546b313711d867b24584 Issue introduced in 6.15 with commit f4b07fd62d4d11d57a15cb4ae01b3833282eb8f6 and fixed in 7.0-rc2 with commit 486ff5ad49bc50315bcaf6d45f04a33ef0a45ced 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-23311 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/events/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/c67ab059953e3b66cb17ddd6524c23f9e1f6526d https://git.kernel.org/stable/c/825f218ca70ef394c2b8546b313711d867b24584 https://git.kernel.org/stable/c/486ff5ad49bc50315bcaf6d45f04a33ef0a45ced