{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "9538edeb72c989a4b90964ae4bba107eaf21a791"
            },
            {
              "fixed": "733552f8c5f5fdce6b2a135dfa2a05ead9f66e91"
            },
            {
              "fixed": "d858330e288a7818cf6d52ed1bd62153f4cd35c0"
            },
            {
              "fixed": "0b591332a2bdc13d3f9163793131fe3651d1556a"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.9.0"
            },
            {
              "fixed": "6.18.61"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.2"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99447.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nspi: spi-pci1xxxx: quiesce DMA engines on transfer timeout\n\nIf a DMA-mapped transfer times out waiting for DMA_TERM and neither DMA\nabort interrupt arrived, pci1xxxx_spi_transfer_with_dma() returns\nthrough the error label while both DMA engines are still enabled, the\ndone/abort interrupt status is still armed and the transfer state\n(p-\u003exfer, p-\u003etx_sgl, p-\u003erx_sgl) is still registered.\n\nThe ISRs keep firing afterwards: they reprogram the DMA engines from\np-\u003etx_sgl / p-\u003erx_sgl and signal completion through p-\u003exfer and\np-\u003espi_xfer_done, all of which the SPI core is free to unmap or reuse\nonce transfer_one() has returned, which is a use-after-free. A late\ndone interrupt can also start the next transfer queued behind the\nfailed one.\n\nStop both DMA engines, drain the pending done/abort interrupt status\nand synchronize the DMA IRQs before dropping the in-progress state and\nthe transfer pointers, and re-enable the engines afterwards so that\nsubsequent transfers keep working. The engines are only turned back on\nonce both were confirmed to have stopped: re-enabling an engine that\nfailed to stop would cancel the pending stop request and let it keep\nrunning into buffers the SPI core is about to unmap or free, which is\nexactly the window this patch closes. An engine that failed to stop is\nleft disabled, as the abort paths already do.\n\nThe DMA interrupt status and mask registers are shared between the two\nSPI instances, so the cleanup drains only this instance's done/abort\nstatus bits instead of masking the interrupt lines, which would also\nsuppress the peer instance's completion interrupts.\n\nAlso make the DMA ISRs ignore interrupts while no transfer is in\nprogress so that a stray MSI after the cleanup can no longer act on\nthe cleared state.\n\nNo PCI1XXXX hardware was available for testing and QEMU has no model\nof this PCIe part, so the timeout path was exercised with a userspace\nreplica of the timeout branch and the DMA ISRs, with the register and\ninterrupt accesses mocked: on the unfixed code both a wedged engine\nthat clears after the timeout and a late done interrupt touch the\nfreed transfer state, while with this fix applied neither does and an\nengine that failed to stop is left disabled.  The module was also\nloaded and unloaded in a QEMU x86_64 guest running a kernel with this\nfix applied.",
  "id": "CVE-2026-99447",
  "modified": "2026-11-19T16:46:09.432183562Z",
  "published": "2026-11-19T14:41:36.666Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0b591332a2bdc13d3f9163793131fe3651d1556a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/733552f8c5f5fdce6b2a135dfa2a05ead9f66e91"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d858330e288a7818cf6d52ed1bd62153f4cd35c0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99447.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99447"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "spi: spi-pci1xxxx: quiesce DMA engines on transfer timeout"
}