{"id":"CVE-2026-31782","state":"PUBLISHED","title":"perf/x86: Fix potential bad container_of in intel_pmu_hw_config","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf/x86: Fix potential bad container_of in intel_pmu_hw_config\n\nAuto counter reload may have a group of events with software events\npresent within it. The software event PMU isn't the x86_hybrid_pmu and\na container_of operation in intel_pmu_set_acr_caused_constr (via the\nhybrid helper) could cause out of bound memory reads. Avoid this by\nguarding the call to intel_pmu_set_acr_caused_constr with an\nis_x86_event check.","publishedAt":"2026-05-01T14:15:08.586Z","updatedAt":"2026-08-05T12:25:09.961Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ec980e4facef8110f6fce27e5b6344660117f01f","status":"affected","lessThan":"e435a30ca6fe14c9611b1fc731c98a6d28410247","versionType":"git"},{"version":"ec980e4facef8110f6fce27e5b6344660117f01f","status":"affected","lessThan":"bfee04838f636d064bc92075c65c95f739003804","versionType":"git"},{"version":"ec980e4facef8110f6fce27e5b6344660117f01f","status":"affected","lessThan":"dbde07f06226438cd2cf1179745fa1bec5d8914a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/x86/events/intel/core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.16","versionType":"semver"},{"version":"6.18.22","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.12","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/x86/events/intel/core.c"]}],"references":["https://git.kernel.org/stable/c/e435a30ca6fe14c9611b1fc731c98a6d28410247","https://git.kernel.org/stable/c/bfee04838f636d064bc92075c65c95f739003804","https://git.kernel.org/stable/c/dbde07f06226438cd2cf1179745fa1bec5d8914a"],"weaknesses":[],"ingestedAt":"2026-10-29T20:11:40.391Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/31xxx/CVE-2026-31782.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-31782","state":"PUBLISHED","datePublished":"2026-05-01T14:15:08.586Z","dateUpdated":"2026-08-05T12:25:09.961Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-03-09T15:48:24.141Z"},"containers":{"cna":{"title":"perf/x86: Fix potential bad container_of in intel_pmu_hw_config","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf/x86: Fix potential bad container_of in intel_pmu_hw_config\n\nAuto counter reload may have a group of events with software events\npresent within it. The software event PMU isn't the x86_hybrid_pmu and\na container_of operation in intel_pmu_set_acr_caused_constr (via the\nhybrid helper) could cause out of bound memory reads. Avoid this by\nguarding the call to intel_pmu_set_acr_caused_constr with an\nis_x86_event check."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ec980e4facef8110f6fce27e5b6344660117f01f","status":"affected","lessThan":"e435a30ca6fe14c9611b1fc731c98a6d28410247","versionType":"git"},{"version":"ec980e4facef8110f6fce27e5b6344660117f01f","status":"affected","lessThan":"bfee04838f636d064bc92075c65c95f739003804","versionType":"git"},{"version":"ec980e4facef8110f6fce27e5b6344660117f01f","status":"affected","lessThan":"dbde07f06226438cd2cf1179745fa1bec5d8914a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/x86/events/intel/core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.16","versionType":"semver"},{"version":"6.18.22","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.12","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/x86/events/intel/core.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/e435a30ca6fe14c9611b1fc731c98a6d28410247"},{"url":"https://git.kernel.org/stable/c/bfee04838f636d064bc92075c65c95f739003804"},{"url":"https://git.kernel.org/stable/c/dbde07f06226438cd2cf1179745fa1bec5d8914a"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable path is reached through the local perf_event_open() syscall by creating a crafted perf hardware event group containing a software event.\nAC:L - An attacker controls the event group layout and acr_mask/config2 values needed to hit the bad sibling handling; no race or victim-controlled timing is required.\nPR:L - A basic local user can reach per-task perf events, especially with user-only sampling attributes such as exclude_kernel set; system-wide or kernel profiling privileges are not required for the vulnerable initialization path.\nUI:N - No victim action is needed beyond the attacker issuing perf_event_open() calls.\nS:U - The bug is in the kernel perf/x86 subsystem and impacts the same kernel security authority, with no VM, IOMMU, or sandbox boundary change.\nC:H - The bug performs an out-of-bounds kernel memory read by treating a software PMU as an x86_hybrid_pmu through container_of; under the required conservative scoring, this kernel OOB read is high confidentiality impact.\nI:H - The bad container_of is a kernel type-confusion-style memory safety flaw in perf event group configuration; conservatively, such corruption of kernel object interpretation is scored as potentially allowing high integrity impact.\nA:H - The crafted event group can repeatedly trigger the invalid kernel memory access from an unprivileged local context, which can produce a kernel fault/oops or panic on affected builds."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:25:09.961Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"6.18.22"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"6.19.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}