perf: Reject exited events as group leaders
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 7a03413f31c196ab3894f988cdce0bb47b4fec42, Kernel 6.2, Kernel 6.12.108 and 7 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=a2d5d3ee7b6e3953114726b1521e62123ab5b043 <7a03413f31c196ab3894f988cdce0bb47b4fec42, >=6.1.191 <6.2, >=6.12.96 <6.12.108, >=6.18.39 <6.18.46, >=6.6.145 <6.6.156, >=7.1.4 <7.1.10, =1d3e1102273f09180262496658e7eeed8a5a7b59, >=037a3c43edfb597665dd34457cd22b14692f2ba3 <fa091f46c3833fb22384f10eade2b4e1e1d0b278, >=06ccef0434e98058ddae7bcebc901f93d22b7653 <7ce010275c531475f9d6e7efb11b9e522c74ed2e, >=39358e856fb89e62e3c8d7389a2dc4ec33dbe90e <e593031ff19a9484e8a00bc47edd447187721846, >=4cdb1b3ab96eb1b7eb70bc5c82fede334bd60df2 <ce12e1170c0c78dffb9b28af6d287492ae7dd99d | 7a03413f31c196ab3894f988cdce0bb47b4fec42, 6.2, 6.12.108, 6.18.46, 6.6.156, 7.1.10, fa091f46c3833fb22384f10eade2b4e1e1d0b278, 7ce010275c531475f9d6e7efb11b9e522c74ed2e, e593031ff19a9484e8a00bc47edd447187721846, ce12e1170c0c78dffb9b28af6d287492ae7dd99d |
| linux-kernel: Kernel | >=6.12.96 <6.12.108, >=6.18.39 <6.18.46, >=6.6.145 <6.6.156, >=7.1.4 <7.1.10, >=6.1.191 <6.2 | 6.12.108, 6.18.46, 6.6.156, 7.1.10, 6.2 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket