Skip to content
Heist/ feed
Critical

spi: Fix DMA mapping ownership on partial map failure

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-90012

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-90012

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "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"
      }
    ],
    "programFiles": [
      "drivers/spi/spi.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.11"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.11",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.12.110",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.51",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.5",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/spi/spi.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-90012

Source reference: /cveMetadata/cveId

Publisher severity

critical

Source reference: /containers/cna/metrics

Event
#36445 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement