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 21DFB2E6CAB for ; Tue, 13 Jan 2026 15:30:30 +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=1768318230; cv=none; b=mkEWk6UjH8WQnZ3YeVdGDUvMhRIDCKghRfh8Y4xMghuSHLv+20uYMNJ+Syvzh2Zcufu+/UAO0kFJWWts7s0OHusx0+GtZPeDVYEuy2AsZ2HeMZaVXm2MYMFJBxLlLAsCESngbIBlVnuzYFBtlyWhhS6iP2HnXFzkAJ73B+BVHmQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768318230; c=relaxed/simple; bh=1oRmQlWyXlJE6W+I2CDwTVeyuECewnXwnnsaat4269w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MYGinN0PMVcu0WBYLoFTgEoK46nVqN+HY6BbM9V3W0s50N0fqL16dT6sN0hzF7XLS4H68uTjbGBSwV4+urRMk5af4BhZ2GDbwRoGkbP5zPfNzfRHsB0tfVFOOmEAeDkHGDuil7OmjSGFqLZ7MKwwYsuPbP4CawlEvcvyM+FA0Xg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Buiub+v/; 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="Buiub+v/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91D47C116C6; Tue, 13 Jan 2026 15:30:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768318229; bh=1oRmQlWyXlJE6W+I2CDwTVeyuECewnXwnnsaat4269w=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Buiub+v/soXBh87Hy1Eh3+BpdqALeOmUnQogO3qrJL1xrQa0symPZ85XIB01z8I8f OyHVs8mSh7DSU3VHXhE/sxhV0ud6f58LmNh43uVsiM+4RerMU5i0X37F/yz0j/McvW QfQpfEX0YLRfOvLRDmOGn6NoZ1A3SJrE/sEI7mOQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68798: perf/x86/amd: Check event before enable to avoid GPF Date: Tue, 13 Jan 2026 16:29:24 +0100 Message-ID: <2026011307-CVE-2025-68798-ea9c@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=4307; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=V6GTPkyAOwNIIY9QCcBYG42LT/tDtW9155nYWjaNNGY=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlpKYcnBp3Qu3B8f0+0r77I/PYJFx/H5h1P+TKxhq1M6 EaG15LVHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRZXEMC85l7pf65qv4bhL/ /lrJcEtTlccSaQzzM/5t9Hv7nS3k26vW+sLSj7OzFjYGAgA= 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/x86/amd: Check event before enable to avoid GPF On AMD machines cpuc->events[idx] can become NULL in a subtle race condition with NMI->throttle->x86_pmu_stop(). Check event for NULL in amd_pmu_enable_all() before enable to avoid a GPF. This appears to be an AMD only issue. Syzkaller reported a GPF in amd_pmu_enable_all. INFO: NMI handler (perf_event_nmi_handler) took too long to run: 13.143 msecs Oops: general protection fault, probably for non-canonical address 0xdffffc0000000034: 0000 PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x00000000000001a0-0x00000000000001a7] CPU: 0 UID: 0 PID: 328415 Comm: repro_36674776 Not tainted 6.12.0-rc1-syzk RIP: 0010:x86_pmu_enable_event (arch/x86/events/perf_event.h:1195 arch/x86/events/core.c:1430) RSP: 0018:ffff888118009d60 EFLAGS: 00010012 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000034 RSI: 0000000000000000 RDI: 00000000000001a0 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000002 R13: ffff88811802a440 R14: ffff88811802a240 R15: ffff8881132d8601 FS: 00007f097dfaa700(0000) GS:ffff888118000000(0000) GS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200001c0 CR3: 0000000103d56000 CR4: 00000000000006f0 Call Trace: amd_pmu_enable_all (arch/x86/events/amd/core.c:760 (discriminator 2)) x86_pmu_enable (arch/x86/events/core.c:1360) event_sched_out (kernel/events/core.c:1191 kernel/events/core.c:1186 kernel/events/core.c:2346) __perf_remove_from_context (kernel/events/core.c:2435) event_function (kernel/events/core.c:259) remote_function (kernel/events/core.c:92 (discriminator 1) kernel/events/core.c:72 (discriminator 1)) __flush_smp_call_function_queue (./arch/x86/include/asm/jump_label.h:27 ./include/linux/jump_label.h:207 ./include/trace/events/csd.h:64 kernel/smp.c:135 kernel/smp.c:540) __sysvec_call_function_single (./arch/x86/include/asm/jump_label.h:27 ./include/linux/jump_label.h:207 ./arch/x86/include/asm/trace/irq_vectors.h:99 arch/x86/kernel/smp.c:272) sysvec_call_function_single (arch/x86/kernel/smp.c:266 (discriminator 47) arch/x86/kernel/smp.c:266 (discriminator 47)) The Linux kernel CVE team has assigned CVE-2025-68798 to this issue. Affected and fixed versions =========================== Fixed in 6.1.160 with commit 49324a0c40f7e9bae1bd0362d23fc42232e14621 Fixed in 6.6.120 with commit 6e41d9ec8d7cc3f01b9ba785e05f0ebef8b3b37f Fixed in 6.12.64 with commit e1028fb38b328084bc683a4efb001c95d3108573 Fixed in 6.18.3 with commit 43c2e5c2acaae50e99d1c20a5a46e367c442fb3b Fixed in 6.19-rc1 with commit 866cf36bfee4fba6a492d2dcc5133f857e3446b0 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-68798 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: arch/x86/events/amd/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/49324a0c40f7e9bae1bd0362d23fc42232e14621 https://git.kernel.org/stable/c/6e41d9ec8d7cc3f01b9ba785e05f0ebef8b3b37f https://git.kernel.org/stable/c/e1028fb38b328084bc683a4efb001c95d3108573 https://git.kernel.org/stable/c/43c2e5c2acaae50e99d1c20a5a46e367c442fb3b https://git.kernel.org/stable/c/866cf36bfee4fba6a492d2dcc5133f857e3446b0