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

CVE-2026-72134 (GCVE-0-2026-72134)

Vulnerability from cvelistv5 – Published: 2026-08-15 05:53 – Updated: 2026-08-17 05:40
VLAI
Title
spi: imx: reconfigure for PIO when DMA cannot be started
Summary
In the Linux kernel, the following vulnerability has been resolved: spi: imx: reconfigure for PIO when DMA cannot be started When spi_imx_can_dma() selects DMA, the ECSPI is configured for DMA: spi_imx_setupxfer() sets CTRL.SMC and clears dynamic_burst, and spi_imx_dma_transfer() programs the dynamic-burst BURST_LENGTH and the SDMA watermarks. If the DMA descriptor cannot be prepared (dmaengine_prep_slave_single() returns NULL), the transfer is failed with SPI_TRANS_FAIL_NO_START and falls back to PIO. The dynamic-burst DMA path uses its own bounce buffers instead of the SPI core's mapping, so xfer->{tx,rx}_sg_mapped are not set and the core's DMA->PIO retry is skipped; the driver falls back to PIO internally. But none of the DMA-mode configuration is undone, so the PIO transfer runs with CTRL.SMC set, the wrong burst length and dynamic_burst cleared, and the transferred data is corrupted. This is easily hit on i.MX8MP boards that describe ECSPI DMA in the device tree but run SDMA on ROM firmware (no external sdma-imx7d.bin): every ECSPI DMA prepare fails. An Infineon SLB9670 TPM on ECSPI1 then returns shifted TPM2_GetCapability data, is flagged "field failure mode", /dev/tpmrm0 is never created. Set controller->fallback before re-running spi_imx_setupxfer() so the ECSPI is reconfigured exactly like a normal PIO transfer. With controller->fallback set, spi_imx_setupxfer() sees spi_imx_can_dma() return false, so it clears spi_imx->usedma and reprograms the controller (clears CTRL.SMC, restores dynamic_burst and the PIO burst length). No explicit spi_imx->usedma = false is needed: setupxfer() already updates it from the can_dma() result.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: faa8e404ad8e686cb98c51dc507fdcacfb8020ce , < 40dee2d3e9994aed9efe7bed40eb0e4d38d5a25c (git)
Affected: faa8e404ad8e686cb98c51dc507fdcacfb8020ce , < 245404c26563aafb36aafb01298f148db1851be3 (git)
guessed Create a notification for this product.
Linux Linux Affected: 7.0
Unaffected: 0 , < 7.0 (semver)
Unaffected: 7.1.5 , ≤ 7.1.* (semver)
Unaffected: 7.2 , ≤ * (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-imx.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "40dee2d3e9994aed9efe7bed40eb0e4d38d5a25c",
              "status": "affected",
              "version": "faa8e404ad8e686cb98c51dc507fdcacfb8020ce",
              "versionType": "git"
            },
            {
              "lessThan": "245404c26563aafb36aafb01298f148db1851be3",
              "status": "affected",
              "version": "faa8e404ad8e686cb98c51dc507fdcacfb8020ce",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/spi/spi-imx.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "7.0"
            },
            {
              "lessThan": "7.0",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.1.*",
              "status": "unaffected",
              "version": "7.1.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1.5",
                  "versionStartIncluding": "7.0",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2",
                  "versionStartIncluding": "7.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nspi: imx: reconfigure for PIO when DMA cannot be started\n\nWhen spi_imx_can_dma() selects DMA, the ECSPI is configured for DMA:\nspi_imx_setupxfer() sets CTRL.SMC and clears dynamic_burst, and\nspi_imx_dma_transfer() programs the dynamic-burst BURST_LENGTH and the\nSDMA watermarks.\n\nIf the DMA descriptor cannot be prepared (dmaengine_prep_slave_single()\nreturns NULL), the transfer is failed with SPI_TRANS_FAIL_NO_START and\nfalls back to PIO. The dynamic-burst DMA path uses its own bounce\nbuffers instead of the SPI core\u0027s mapping, so xfer-\u003e{tx,rx}_sg_mapped\nare not set and the core\u0027s DMA-\u003ePIO retry is skipped; the driver falls\nback to PIO internally. But none of the DMA-mode configuration is\nundone, so the PIO transfer runs with CTRL.SMC set, the wrong burst\nlength and dynamic_burst cleared, and the transferred data is corrupted.\n\nThis is easily hit on i.MX8MP boards that describe ECSPI DMA in the\ndevice tree but run SDMA on ROM firmware (no external sdma-imx7d.bin):\nevery ECSPI DMA prepare fails. An Infineon SLB9670 TPM on ECSPI1 then\nreturns shifted TPM2_GetCapability data, is flagged \"field failure\nmode\", /dev/tpmrm0 is never created.\n\nSet controller-\u003efallback before re-running spi_imx_setupxfer() so the\nECSPI is reconfigured exactly like a normal PIO transfer. With\ncontroller-\u003efallback set, spi_imx_setupxfer() sees spi_imx_can_dma()\nreturn false, so it clears spi_imx-\u003eusedma and reprograms the controller\n(clears CTRL.SMC, restores dynamic_burst and the PIO burst length). No\nexplicit spi_imx-\u003eusedma = false is needed: setupxfer() already updates\nit from the can_dma() result."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The flaw is in the Freescale i.MX ECSPI host driver reached only through local SPI core APIs (spidev ioctl/read/write or in-kernel spi_sync/spi_write_then_read); it is not triggered by remote network packets or adjacent radio frames.\nAC:L - On common i.MX8MP boards with ECSPI DMA enabled but SDMA firmware missing, every transfer \u003e=64 bytes deterministically hits the DMA-prepare-fail PIO fallback; attackers can also force dmaengine_prep_slave_single() failure via DMA resource pressure without races.\nPR:L - Exploitation requires local ability to drive SPI traffic, typically via /dev/spidev group membership or unprivileged use of TPM/MTD interfaces on embedded i.MX systems; it is not reachable from unauthenticated remote network input alone.\nUI:N - No victim interaction is required; the corrupted fallback is exercised automatically during kernel driver SPI transfers (e.g., TPM probe at boot) or by the attacker\u0027s own spidev ioctl without needing another user to mount or open resources.\nS:U - Impact is confined to the same host kernel and its locally attached SPI slaves (TPM, NOR flash, sensors); it does not cross a VM, container, or IOMMU security boundary to another authority.\nC:H - Corrupted PIO RX with stale DMA burst/SMC settings delivers shifted security-peripheral responses (e.g., TPM2_GetCapability) and misaligned NOR-flash reads into kernel and userspace buffers, disclosing sensitive device data beyond correct protocol parsing.\nI:H - Stale DMA-mode CTRL settings cause corrupted SPI writes that can alter TPM commands, NOR-flash contents, and other attached secure-element or firmware-store data on i.MX ECSPI buses used in embedded and automotive deployments.\nA:H - Demonstrated total loss of TPM availability (/dev/tpmrm0 never created after shifted capability reads) and reliable breakage of all large ECSPI transfers on affected i.MX8MP SDMA-ROM configurations, denying security and storage services."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-17T05:40:44.407Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/40dee2d3e9994aed9efe7bed40eb0e4d38d5a25c"
        },
        {
          "url": "https://git.kernel.org/stable/c/245404c26563aafb36aafb01298f148db1851be3"
        }
      ],
      "title": "spi: imx: reconfigure for PIO when DMA cannot be started",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-72134",
    "datePublished": "2026-08-15T05:53:09.573Z",
    "dateReserved": "2026-08-09T03:40:39.907Z",
    "dateUpdated": "2026-08-17T05:40:44.407Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-72134",
      "date": "2026-09-04",
      "epss": "0.00154",
      "percentile": "0.04825"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-72134\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-08-15T06:21:30.880\",\"lastModified\":\"2026-08-17T06:18:13.150\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nspi: imx: reconfigure for PIO when DMA cannot be started\\n\\nWhen spi_imx_can_dma() selects DMA, the ECSPI is configured for DMA:\\nspi_imx_setupxfer() sets CTRL.SMC and clears dynamic_burst, and\\nspi_imx_dma_transfer() programs the dynamic-burst BURST_LENGTH and the\\nSDMA watermarks.\\n\\nIf the DMA descriptor cannot be prepared (dmaengine_prep_slave_single()\\nreturns NULL), the transfer is failed with SPI_TRANS_FAIL_NO_START and\\nfalls back to PIO. The dynamic-burst DMA path uses its own bounce\\nbuffers instead of the SPI core\u0027s mapping, so xfer-\u003e{tx,rx}_sg_mapped\\nare not set and the core\u0027s DMA-\u003ePIO retry is skipped; the driver falls\\nback to PIO internally. But none of the DMA-mode configuration is\\nundone, so the PIO transfer runs with CTRL.SMC set, the wrong burst\\nlength and dynamic_burst cleared, and the transferred data is corrupted.\\n\\nThis is easily hit on i.MX8MP boards that describe ECSPI DMA in the\\ndevice tree but run SDMA on ROM firmware (no external sdma-imx7d.bin):\\nevery ECSPI DMA prepare fails. An Infineon SLB9670 TPM on ECSPI1 then\\nreturns shifted TPM2_GetCapability data, is flagged \\\"field failure\\nmode\\\", /dev/tpmrm0 is never created.\\n\\nSet controller-\u003efallback before re-running spi_imx_setupxfer() so the\\nECSPI is reconfigured exactly like a normal PIO transfer. With\\ncontroller-\u003efallback set, spi_imx_setupxfer() sees spi_imx_can_dma()\\nreturn false, so it clears spi_imx-\u003eusedma and reprograms the controller\\n(clears CTRL.SMC, restores dynamic_burst and the PIO burst length). No\\nexplicit spi_imx-\u003eusedma = false is needed: setupxfer() already updates\\nit from the can_dma() result.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/spi/spi-imx.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"faa8e404ad8e686cb98c51dc507fdcacfb8020ce\",\"lessThan\":\"40dee2d3e9994aed9efe7bed40eb0e4d38d5a25c\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"faa8e404ad8e686cb98c51dc507fdcacfb8020ce\",\"lessThan\":\"245404c26563aafb36aafb01298f148db1851be3\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/spi/spi-imx.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"7.0\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"7.0\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1.5\",\"lessThanOrEqual\":\"7.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.2\",\"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:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9}]},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/245404c26563aafb36aafb01298f148db1851be3\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/40dee2d3e9994aed9efe7bed40eb0e4d38d5a25c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-08-17T23:32:12+00:00",
      "cve": "CVE-2026-72134",
      "id": "CVE-2026-72134",
      "initial_release_date": "2026-08-15T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: spi: imx: reconfigure for PIO when DMA cannot be started",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-72134.json",
      "version": "3"
    }
  }
}



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…

Loading…