Skip to content
Heist/ feed
Back to feed
HighFix available

perf/x86: Fix potential bad container_of in intel_pmu_hw_config

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.18.22, 6.19.12
CVEs
CVE-2026-31782
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 00:55 UTC · Revision 1

Source evidence

perf/x86: Fix potential bad container_of in intel_pmu_hw_config

core-osv · Original source

Published 1 May 2026, 14:15 UTC

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.

osv:CVE-2026-31782

Kernel

Fixed versions: 6.18.22, 6.19.12

Complete source record
{
  "id": "95b2317154191b060a811d20b37a4af4d4fb37f3d7a441c05f39bd2bc5b8ee92",
  "url": "https://osv.dev/vulnerability/CVE-2026-31782",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "perf/x86: Fix potential bad container_of in intel_pmu_hw_config",
    "summary": "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.",
    "evidence": "osv:CVE-2026-31782",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.18.22",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.19.12",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-31782",
      "aliases": [
        "CVE-2026-31782"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "ec980e4facef8110f6fce27e5b6344660117f01f"
                },
                {
                  "fixed": "e435a30ca6fe14c9611b1fc731c98a6d28410247"
                },
                {
                  "fixed": "bfee04838f636d064bc92075c65c95f739003804"
                },
                {
                  "fixed": "dbde07f06226438cd2cf1179745fa1bec5d8914a"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31782.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.16.0"
                },
                {
                  "fixed": "6.18.22"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "6.19.12"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31782.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:48.676557160Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/bfee04838f636d064bc92075c65c95f739003804",
        "https://git.kernel.org/stable/c/dbde07f06226438cd2cf1179745fa1bec5d8914a",
        "https://git.kernel.org/stable/c/e435a30ca6fe14c9611b1fc731c98a6d28410247",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31782.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-31782",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31782.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-31782",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 516784,
  "published_at": "2026-05-01T14:15:08.586+00:00"
}