perf: Fix list corruption in perf_cgroup_switch()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 058fe1c0440e68a1ba3c2270ae43e9f0298b27d8 · < 2142bc1469a316fddd10012d76428f7265258f81| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
perf: Fix list corruption in perf_cgroup_switch()
There's list corruption on cgrp_cpuctx_list. This happens on the following path:
perf_cgroup_switch: list_for_each_entry(cgrp_cpuctx_list) cpu_ctx_sched_in ctx_sched_in ctx_pinned_sched_in merge_sched_in perf_cgroup_event_disable: remove the event from the list
Use list_for_each_entry_safe() to allow removing an entry during iteration.
From the CVE record · Linux
The Linux kernel's perf_cgroup_switch() can corrupt a list when a perf cgroup event is removed during list iteration. The input does not specify how an attacker could trigger this, whether authentication or user interaction is required, or the resulting impact.
Engineers running the Linux kernel should check whether their version is affected; affected versions are not specified.