GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2026-90012 (GCVE-0-2026-90012)

Vulnerability from cvelistv5 – Published: 2026-09-16 10:33 – Updated: 2026-09-16 14:41
VLAI
Title
spi: Fix DMA mapping ownership on partial map failure
Summary
In the Linux kernel, the following vulnerability has been resolved: spi: Fix DMA mapping ownership on partial map failure If RX mapping fails after TX mapping succeeds, __spi_map_msg() unmaps TX but leaves tx_sg_mapped set. If TX mapping fails on a later transfer, mappings created for earlier transfers remain active. In both cases, cur_{tx,rx}_dma_dev have not yet been updated because they are assigned only after every transfer has been mapped. The subsequent spi_unmap_msg() may therefore unmap the TX mapping again or release earlier mappings using a NULL or stale device. Using a NULL device can trigger an oops. An empty SG table does not prevent the NULL dereference because dma_unmap_sg_attrs() accesses the device before checking the entry count. Publish both mapping devices before mapping starts and unwind all failures through __spi_unmap_msg(). This clears the mapping flags and releases each mapping once with the device that created it. Publishing the devices before the loop also refreshes them when no transfer needs mapping. No mapping flag is set in that case, so current users do not use the pointers as mapping owners.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: e289df82344fecc104ad8326b9ab6da612b9c899 , < cc8354213ad6bd5fb8cc05a3fa3701188d086626 (git)
Affected: e289df82344fecc104ad8326b9ab6da612b9c899 , < a38051fa2ddedbc8ec15292c55e276880ec5b9a4 (git)
Affected: e289df82344fecc104ad8326b9ab6da612b9c899 , < 5def8b6aaad44603740786262b95b6f77df52a1c (git)
Affected: e289df82344fecc104ad8326b9ab6da612b9c899 , < 367cea239fc93094e5c16a72724800e0358f5c46 (git)
guessed Create a notification for this product.
Linux Linux Affected: 6.11
Unaffected: 0 , < 6.11 (semver)
Unaffected: 6.12.110 , ≤ 6.12.* (semver)
Unaffected: 6.18.51 , ≤ 6.18.* (semver)
Unaffected: 7.2.5 , ≤ 7.2.* (semver)
Unaffected: 7.3-rc1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/spi/spi.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "cc8354213ad6bd5fb8cc05a3fa3701188d086626",
              "status": "affected",
              "version": "e289df82344fecc104ad8326b9ab6da612b9c899",
              "versionType": "git"
            },
            {
              "lessThan": "a38051fa2ddedbc8ec15292c55e276880ec5b9a4",
              "status": "affected",
              "version": "e289df82344fecc104ad8326b9ab6da612b9c899",
              "versionType": "git"
            },
            {
              "lessThan": "5def8b6aaad44603740786262b95b6f77df52a1c",
              "status": "affected",
              "version": "e289df82344fecc104ad8326b9ab6da612b9c899",
              "versionType": "git"
            },
            {
              "lessThan": "367cea239fc93094e5c16a72724800e0358f5c46",
              "status": "affected",
              "version": "e289df82344fecc104ad8326b9ab6da612b9c899",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/spi/spi.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.11"
            },
            {
              "lessThan": "6.11",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.110",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.51",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.2.*",
              "status": "unaffected",
              "version": "7.2.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.3-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.110",
                  "versionStartIncluding": "6.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.51",
                  "versionStartIncluding": "6.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2.5",
                  "versionStartIncluding": "6.11",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3-rc1",
                  "versionStartIncluding": "6.11",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 9.8,
            "baseSeverity": "CRITICAL",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:N - Unauthenticated frames to a network-facing SPI NIC such as ENC28J60 or W5500 cause the driver to call spi_sync() with a multi-transfer command-plus-payload message, which reaches __spi_map_msg() in the SPI core with no local login.\nAC:L - The attacker decides when transfers run (packet flood) and can force a partial DMA map failure via memory or IOMMU pressure; controllers such as fsl-lpspi DMA-map even tiny transfers and MUST_TX/MUST_RX dummy buffers create the TX-then-RX failure the bug requires, with no race to win.\nPR:N - The SPI Ethernet receive and transmit paths run before any protocol authentication and have no capability, device-node, or namespace check, so a remote sender needs no privileges.\nUI:N - Once the SPI NIC is configured and up, attacker traffic alone drives spi_sync() into the mapping path; no separate victim action is required.\nS:U - Wrong-device or double DMA unmap and the resulting oops stay inside the host kernel DMA/IOMMU authority and do not cross a VM, guest, or other authorization boundary.\nC:H - On partial map failure the core leaves tx_sg_mapped set after unmapping TX, or leaves earlier live mappings active, then spi_unmap_msg() unmaps again with a NULL or stale DMA device, corrupting IOMMU bookkeeping in a way that can expose kernel memory.\nI:H - Double-unmap or wrong-device unmap of scatter-gather DMA mappings can alias or tear down IOVAs and allow writes into unintended kernel memory, so integrity impact is high under the required higher-severity rule.\nA:H - dma_unmap_sg_attrs() loads the mapping device before checking the SG entry count, so a NULL cur_{tx,rx}_dma_dev (or a NULL sgl on the IOMMU unmap path) causes a repeatable kernel oops."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-09-16T14:41:29.669Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/cc8354213ad6bd5fb8cc05a3fa3701188d086626"
        },
        {
          "url": "https://git.kernel.org/stable/c/a38051fa2ddedbc8ec15292c55e276880ec5b9a4"
        },
        {
          "url": "https://git.kernel.org/stable/c/5def8b6aaad44603740786262b95b6f77df52a1c"
        },
        {
          "url": "https://git.kernel.org/stable/c/367cea239fc93094e5c16a72724800e0358f5c46"
        }
      ],
      "title": "spi: Fix DMA mapping ownership on partial map failure",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-90012",
    "datePublished": "2026-09-16T10:33:19.463Z",
    "dateReserved": "2026-09-11T19:38:34.781Z",
    "dateUpdated": "2026-09-16T14:41:29.669Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-90012\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-09-16T11:17:13.890\",\"lastModified\":\"2026-09-16T15:18:24.870\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"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.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/spi/spi.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"e289df82344fecc104ad8326b9ab6da612b9c899\",\"lessThan\":\"cc8354213ad6bd5fb8cc05a3fa3701188d086626\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"e289df82344fecc104ad8326b9ab6da612b9c899\",\"lessThan\":\"a38051fa2ddedbc8ec15292c55e276880ec5b9a4\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"e289df82344fecc104ad8326b9ab6da612b9c899\",\"lessThan\":\"5def8b6aaad44603740786262b95b6f77df52a1c\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"e289df82344fecc104ad8326b9ab6da612b9c899\",\"lessThan\":\"367cea239fc93094e5c16a72724800e0358f5c46\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/spi/spi.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"6.11\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"6.11\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.110\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.51\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.2.5\",\"lessThanOrEqual\":\"7.2.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.3-rc1\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":9.8,\"baseSeverity\":\"CRITICAL\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":3.9,\"impactScore\":5.9}]},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/367cea239fc93094e5c16a72724800e0358f5c46\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/5def8b6aaad44603740786262b95b6f77df52a1c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/a38051fa2ddedbc8ec15292c55e276880ec5b9a4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/cc8354213ad6bd5fb8cc05a3fa3701188d086626\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…