{
  "id": "CVE-2026-90012",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-90012",
  "published_at": "2026-09-16T10:33:19.463Z",
  "title": "spi: Fix DMA mapping ownership on partial map failure",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 9.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nspi: Fix DMA mapping ownership on partial map failure\n\nIf RX mapping fails after TX mapping succeeds, __spi_map_msg() unmaps\nTX but leaves tx_sg_mapped set. If TX mapping fails on a later\ntransfer, mappings created for earlier transfers remain active.\n\nIn both cases, cur_{tx,rx}_dma_dev have not yet been updated because they\nare assigned only after every transfer has been mapped. The subsequent\nspi_unmap_msg() may therefore unmap the TX mapping again or release\nearlier mappings using a NULL or stale device. Using a NULL device can\ntrigger an oops. An empty SG table does not prevent the NULL dereference\nbecause dma_unmap_sg_attrs() accesses the device before checking the\nentry count.\n\nPublish both mapping devices before mapping starts and unwind all\nfailures through __spi_unmap_msg(). This clears the mapping flags and\nreleases each mapping once with the device that created it.\n\nPublishing the devices before the loop also refreshes them when no\ntransfer needs mapping. No mapping flag is set in that case, so current\nusers do not use the pointers as mapping owners.",
  "cvss_by_source": {
    "cna": 9.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= e289df82344fecc104ad8326b9ab6da612b9c899, \u003c cc8354213ad6bd5fb8cc05a3fa3701188d086626",
          "\u003e= e289df82344fecc104ad8326b9ab6da612b9c899, \u003c a38051fa2ddedbc8ec15292c55e276880ec5b9a4",
          "\u003e= e289df82344fecc104ad8326b9ab6da612b9c899, \u003c 5def8b6aaad44603740786262b95b6f77df52a1c",
          "\u003e= e289df82344fecc104ad8326b9ab6da612b9c899, \u003c 367cea239fc93094e5c16a72724800e0358f5c46"
        ],
        "fixed_in": [
          "cc8354213ad6bd5fb8cc05a3fa3701188d086626",
          "a38051fa2ddedbc8ec15292c55e276880ec5b9a4",
          "5def8b6aaad44603740786262b95b6f77df52a1c",
          "367cea239fc93094e5c16a72724800e0358f5c46"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.11"
        ],
        "fixed_in": [
          "0",
          "6.12.110",
          "6.18.51",
          "7.2.5",
          "7.3"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to cc8354213ad6bd5fb8cc05a3fa3701188d086626 or a38051fa2ddedbc8ec15292c55e276880ec5b9a4 or 5def8b6aaad44603740786262b95b6f77df52a1c or 367cea239fc93094e5c16a72724800e0358f5c46 or later.",
      "Upgrade Linux to 0 or 6.12.110 or 6.18.51 or 7.2.5 or 7.3 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
