CVE-2026-31782: 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 containerof in intelpmuhwconfig
Auto counter reload may have a group of events with software events present within it. The software event PMU isn't the x86hybridpmu and a containerof operation in intelpmusetacrcausedconstr (via the hybrid helper) could cause out of bound memory reads. Avoid this by guarding the call to intelpmusetacrcausedconstr with an isx86event check.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linux-nvidiato a version that resolves this vulnerability.Fixed in 7.0.0-1006.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.19.12-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.116-1Fixed in 7.2.15-1Fixed in 7.3.4-1 - Compensating control
Guard the call to intel_pmu_set_acr_caused_constr with an is_x86_event check in intel_pmu_hw_config.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-31782?
CVE-2026-31782 has been assessed to have moderate severity.
How do I fix CVE-2026-31782?
To fix CVE-2026-31782, update your Linux kernel to the latest stable version that addresses this vulnerability.
What are the potential impacts of CVE-2026-31782?
The potential impacts of CVE-2026-31782 include stability issues due to improper handling of software events in hardware performance counters.
Which versions of the Linux kernel are affected by CVE-2026-31782?
CVE-2026-31782 affects specific versions of the Linux kernel that utilize the Intel PMU for performance monitoring.
Is CVE-2026-31782 under active exploitation?
As of now, there is no known active exploitation of CVE-2026-31782 reported.