{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "ec980e4facef8110f6fce27e5b6344660117f01f"
            },
            {
              "fixed": "e435a30ca6fe14c9611b1fc731c98a6d28410247"
            },
            {
              "fixed": "bfee04838f636d064bc92075c65c95f739003804"
            },
            {
              "fixed": "dbde07f06226438cd2cf1179745fa1bec5d8914a"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.16.0"
            },
            {
              "fixed": "6.18.22"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "6.19.12"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31782.json"
  },
  "details": "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.",
  "id": "CVE-2026-31782",
  "modified": "2026-07-08T05:36:17.385894247Z",
  "published": "2026-05-01T14:15:08.586Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/bfee04838f636d064bc92075c65c95f739003804"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/dbde07f06226438cd2cf1179745fa1bec5d8914a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e435a30ca6fe14c9611b1fc731c98a6d28410247"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31782.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-31782"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "perf/x86: Fix potential bad container_of in intel_pmu_hw_config"
}