Skip to contentSkip to conversation

CVE-2026-74753: perf: Reject exited events as group leaders

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 26

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: Reject exited events as group leaders

perf_event_remove_on_exec() sets remove-on-exec events to the EXIT state and detaches their group relationships. The event's file descriptor can remain open, however, and perf_event_open() currently accepts that event as a group leader because its early validation rejects only REVOKED and DEAD events.

A new sibling can consequently be linked to the detached leader. When the leader is closed, perf_group_detach() observes that its PERF_ATTACH_GROUP bit is already clear and skips the new sibling. The sibling then retains a group_leader pointer to the freed event.

Reject group leaders in the EXIT state. Perform the check while holding the shared context mutex so that an exec in the target task cannot detach the leader between validation and group attachment.

[peterz: make the earlier test fully consistent]

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

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

	Issue introduced in 6.18.39 with commit a2d5d3ee7b6e3953114726b1521e62123ab5b043 and fixed in 6.18.46 with commit 7a03413f31c196ab3894f988cdce0bb47b4fec42
	Issue introduced in 7.1.4 with commit 06ccef0434e98058ddae7bcebc901f93d22b7653 and fixed in 7.1.10 with commit 7ce010275c531475f9d6e7efb11b9e522c74ed2e
	Issue introduced in 6.6.145 with commit 4cdb1b3ab96eb1b7eb70bc5c82fede334bd60df2
	Issue introduced in 6.12.96 with commit 39358e856fb89e62e3c8d7389a2dc4ec33dbe90e

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

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/7a03413f31c196ab3894f988cdce0bb47b4fec42
	https://git.kernel.org/stable/c/7ce010275c531475f9d6e7efb11b9e522c74ed2e
	https://git.kernel.org/stable/c/fa091f46c3833fb22384f10eade2b4e1e1d0b278