{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "8ed8b02396172b137ca8c78c3cb999ddf4fb0bbf"
            },
            {
              "fixed": "ed74e8d603df457bfcf16ed4f8f1660a1525759e"
            },
            {
              "fixed": "ef6d27af71e1dc43181ec797a6aaa77c27c36786"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "7.1.0"
            },
            {
              "fixed": "7.2.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98145.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\naccel/amdxdna: reject a command chain that carries no commands\n\nA chain whose command_count is zero passes the payload length check,\nbecause struct_size(payload, data, 0) is just the header. The fill loop\nthen does not run, so offset stays zero and the request is submitted with\na zero-length buffer.\n\nOn firmware without AIE2_NPU_COMMAND that ends at the opcode check, since\nop is still ERT_INVALID_CMD and aie2_get_chain_msg_op() answers\nMSG_OP_MAX_OPCODE. aie2_get_npu_chain_msg_op() answers\nMSG_OP_CHAIN_EXEC_NPU whatever it is given, so there the submission\ncontinues to drm_clflush_virt_range(cmd_buf, 0), which reads the byte\nbefore the buffer and faults on the vmap guard page. EXEC_CMD is\nreachable by any process that can open the render node.\n\nReject the request instead.",
  "id": "CVE-2026-98145",
  "modified": "2026-09-27T03:30:24.732133202Z",
  "published": "2026-09-25T10:36:19.692Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ed74e8d603df457bfcf16ed4f8f1660a1525759e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ef6d27af71e1dc43181ec797a6aaa77c27c36786"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98145.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-98145"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.0",
  "summary": "accel/amdxdna: reject a command chain that carries no commands"
}