{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "f09c1e6077abd1bc2ddd2b97e1135215801ca7f9"
            },
            {
              "fixed": "3543005a42d7e8e12b21897ef6798541bf7cbcd3"
            },
            {
              "fixed": "86b732fbc37ce4fb76cdd4af0fb7e30a6acdbce6"
            },
            {
              "fixed": "a018d1819f158991b7308e4f74609c6c029b670c"
            }
          ],
          "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-31766.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: validate doorbell_offset in user queue creation\n\namdgpu_userq_get_doorbell_index() passes the user-provided\ndoorbell_offset to amdgpu_doorbell_index_on_bar() without bounds\nchecking. An arbitrarily large doorbell_offset can cause the\ncalculated doorbell index to fall outside the allocated doorbell BO,\npotentially corrupting kernel doorbell space.\n\nValidate that doorbell_offset falls within the doorbell BO before\ncomputing the BAR index, using u64 arithmetic to prevent overflow.\n\n(cherry picked from commit de1ef4ffd70e1d15f0bf584fd22b1f28cbd5e2ec)",
  "id": "CVE-2026-31766",
  "modified": "2026-07-08T05:36:27.303975077Z",
  "published": "2026-05-01T14:14:56.622Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3543005a42d7e8e12b21897ef6798541bf7cbcd3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/86b732fbc37ce4fb76cdd4af0fb7e30a6acdbce6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a018d1819f158991b7308e4f74609c6c029b670c"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31766.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-31766"
    },
    {
      "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:N/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "drm/amdgpu: validate doorbell_offset in user queue creation"
}