{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "505b5240329b922f21f91d5b5d1e535c805eca6d"
            },
            {
              "fixed": "46a60ee8956ef1975f00455f614761c7ecedc09d"
            },
            {
              "fixed": "5bb398991f378ef74d90b14a6ea8b61ff96cc03a"
            },
            {
              "fixed": "d59c5d8539662d95887b4564f3f72ad38076a2d5"
            },
            {
              "fixed": "489f2ef2b908898d01df697dc4fe1476674be640"
            },
            {
              "fixed": "4a41c2b18fc05d30b718d2602cac339eae710b34"
            },
            {
              "fixed": "f0e441be08a2eab10b2d06fccfa267ee599dd6b3"
            },
            {
              "fixed": "27ef84bba9b9d7b03418c60fbc6069ea0e87b13c"
            },
            {
              "fixed": "f8995c2df519f382525ca4bc90553ad2ec611067"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "abc60edcfc87771ff244763d4d19c67766f5dd0f"
            },
            {
              "last_affected": "a2a840d6dcae960c2dfdf3fcb1b759e1b7d90663"
            },
            {
              "last_affected": "00279b505289f7529d9be2e78915d0483ffbd314"
            },
            {
              "last_affected": "d04e6ea0cec9e7d6cba806508f657d2d0dc6cacf"
            },
            {
              "last_affected": "7f3ebea19795eb38438cd3709fabf2afd53cf447"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "3.16.63"
            },
            {
              "fixed": "3.17"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "4.4.170"
            },
            {
              "fixed": "4.5"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "4.9.148"
            },
            {
              "fixed": "4.10"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "4.14.91"
            },
            {
              "fixed": "4.15"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "4.19.13"
            },
            {
              "fixed": "4.20"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.20.0"
            },
            {
              "fixed": "5.10.253"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.203"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.168"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.134"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.81"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.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-31781.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/ioc32: stop speculation on the drm_compat_ioctl path\n\nThe drm compat ioctl path takes a user controlled pointer, and then\ndereferences it into a table of function pointers, the signature method\nof spectre problems.  Fix this up by calling array_index_nospec() on the\nindex to the function pointer list.",
  "id": "CVE-2026-31781",
  "modified": "2026-07-08T05:39:21.760144498Z",
  "published": "2026-05-01T14:15:07.933Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/27ef84bba9b9d7b03418c60fbc6069ea0e87b13c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/46a60ee8956ef1975f00455f614761c7ecedc09d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/489f2ef2b908898d01df697dc4fe1476674be640"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4a41c2b18fc05d30b718d2602cac339eae710b34"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5bb398991f378ef74d90b14a6ea8b61ff96cc03a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d59c5d8539662d95887b4564f3f72ad38076a2d5"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f0e441be08a2eab10b2d06fccfa267ee599dd6b3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f8995c2df519f382525ca4bc90553ad2ec611067"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31781.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-31781"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.5",
  "summary": "drm/ioc32: stop speculation on the drm_compat_ioctl path"
}