perf/x86: Fix potential bad container_of in intel_pmu_hw_config
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.226.19.127.0In the Linux kernel, the following vulnerability has been resolved:
perf/x86: Fix potential bad container_of in intel_pmu_hw_config
Auto counter reload may have a group of events with software events present within it. The software event PMU isn't the x86_hybrid_pmu and a container_of operation in intel_pmu_set_acr_caused_constr (via the hybrid helper) could cause out of bound memory reads. Avoid this by guarding the call to intel_pmu_set_acr_caused_constr with an is_x86_event check.
From the CVE record · Linux
The Linux kernel's perf/x86 auto counter reload path can make an out-of-bounds read when an event group includes software events. The input does not specify whether triggering this requires local access, authentication, or user interaction.
Engineers running the Linux kernel should check their version; affected versions are not specified in the input.