Skip to contentSkip to conversation

CVE-2026-53114: perf/amd/ibs: Avoid calling perf_allow_kernel() from the IBS NMI handler

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 24

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

perf/amd/ibs: Avoid calling perf_allow_kernel() from the IBS NMI handler

Calling perf_allow_kernel() from the NMI context is unsafe and could be fatal. Capture the permission at event-initialization time by storing it in event->hw.flags, and have the NMI handler rely on that cached flag instead of making the call directly.

The Linux kernel CVE team has assigned CVE-2026-53114 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.14 with commit 50a53b60e141d7e31368a87e222e4dd5597bd4ae and fixed in 6.18.33 with commit 2783ed2442ce69ae240b787aee6dae801cef7aec
	Issue introduced in 6.14 with commit 50a53b60e141d7e31368a87e222e4dd5597bd4ae and fixed in 7.0.10 with commit 0584e74fa2b27e9e722cfb5b579f79263df20040
	Issue introduced in 6.14 with commit 50a53b60e141d7e31368a87e222e4dd5597bd4ae and fixed in 7.1 with commit b0a09142622a994c4f4088c3f61db5da87cfc711

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-53114

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/ibs.c
	arch/x86/events/perf_event_flags.h

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/2783ed2442ce69ae240b787aee6dae801cef7aec
	https://git.kernel.org/stable/c/0584e74fa2b27e9e722cfb5b579f79263df20040
	https://git.kernel.org/stable/c/b0a09142622a994c4f4088c3f61db5da87cfc711