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]
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
4cdb1b3ab96eb1b7eb70bc5c82fede334bd60df2 to < ce12e1170c0c78dffb9b28af6d287492ae7dd99daffected39358e856fb89e62e3c8d7389a2dc4ec33dbe90e to < e593031ff19a9484e8a00bc47edd447187721846affecteda2d5d3ee7b6e3953114726b1521e62123ab5b043 to < 7a03413f31c196ab3894f988cdce0bb47b4fec42affected06ccef0434e98058ddae7bcebc901f93d22b7653 to < 7ce010275c531475f9d6e7efb11b9e522c74ed2eaffected037a3c43edfb597665dd34457cd22b14692f2ba3 to < fa091f46c3833fb22384f10eade2b4e1e1d0b278affected1d3e1102273f09180262496658e7eeed8a5a7b59affected6.1.191 to < 6.2affected
Linux Linux
Default version status: unaffected
6.6.145 to < 6.6.156affected6.12.96 to < 6.12.108affected6.18.39 to < 6.18.46affected7.1.4 to < 7.1.10affected
References
- https://git.kernel.org/stable/c/ce12e1170c0c78dffb9b28af6d287492ae7dd99d ↗
- https://git.kernel.org/stable/c/e593031ff19a9484e8a00bc47edd447187721846 ↗
- https://git.kernel.org/stable/c/7a03413f31c196ab3894f988cdce0bb47b4fec42 ↗
- https://git.kernel.org/stable/c/7ce010275c531475f9d6e7efb11b9e522c74ed2e ↗
- https://git.kernel.org/stable/c/fa091f46c3833fb22384f10eade2b4e1e1d0b278 ↗