Linux
perf/x86: Fix potential bad container_of in intel_pmu_hw_config
In 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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= ec980e4facef8110f6fce27e5b6344660117f01f, < e435a30ca6fe14c9611b1fc731c98a6d28410247
- >= ec980e4facef8110f6fce27e5b6344660117f01f, < bfee04838f636d064bc92075c65c95f739003804
- >= ec980e4facef8110f6fce27e5b6344660117f01f, < dbde07f06226438cd2cf1179745fa1bec5d8914a
Fixed in e435a30ca6fe14c9611b1fc731c98a6d28410247, bfee04838f636d064bc92075c65c95f739003804, dbde07f06226438cd2cf1179745fa1bec5d8914a
- 6.16
Fixed in 0, 6.18.22, 6.19.12, 7.0
Mitigation
Upgrade Linux to e435a30ca6fe14c9611b1fc731c98a6d28410247 or bfee04838f636d064bc92075c65c95f739003804 or dbde07f06226438cd2cf1179745fa1bec5d8914a or later.
Upgrade Linux to 0 or 6.18.22 or 6.19.12 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.