CVE-2026-64221 (GCVE-0-2026-64221)

Vulnerability from cvelistv5 – Published: 2026-07-24 15:23 – Updated: 2026-07-27 04:58
VLAI
Title
spi: ti-qspi: fix use-after-free after DMA setup failure
Summary
In the Linux kernel, the following vulnerability has been resolved: spi: ti-qspi: fix use-after-free after DMA setup failure The driver falls back to PIO mode if DMA setup fails during probe. Make sure to clear the DMA channel pointer also if buffer allocation fails to avoid passing a pointer to the released channel to the DMA engine (or trying to free the channel a second time on late probe errors or driver unbind). This issue was flagged by Sashiko when reviewing a devres allocation conversion patch.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83 , < 9c6f306a8140962c7284197db54b96fdb5f468d6 (git)
Affected: c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83 , < 3bbbe7ae3fdada0df4157c1ffe989f92dfa8dcd6 (git)
Affected: c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83 , < d6f422b122922d1abee907d673bcc990e5f3672d (git)
Affected: c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83 , < f2dc841d7dc9063fe9b47ced869b1271e55052ae (git)
Affected: c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83 , < 1cd927002120678bd5d23c760246639caa53040e (git)
Affected: c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83 , < d7a076fb596c7b408ed6df74793a597990a6d860 (git)
Affected: c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83 , < 178b9b570c0f75fa7e691490520328b20d19138e (git)
Affected: c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83 , < ea6ec3343e05f7937a53eb6d7617b3abdb4abc19 (git)
Create a notification for this product.
Linux Linux Affected: 4.12
Unaffected: 0 , < 4.12 (semver)
Unaffected: 5.10.258 , ≤ 5.10.* (semver)
Unaffected: 5.15.209 , ≤ 5.15.* (semver)
Unaffected: 6.1.175 , ≤ 6.1.* (semver)
Unaffected: 6.6.142 , ≤ 6.6.* (semver)
Unaffected: 6.12.92 , ≤ 6.12.* (semver)
Unaffected: 6.18.34 , ≤ 6.18.* (semver)
Unaffected: 7.0.11 , ≤ 7.0.* (semver)
Unaffected: 7.1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/spi/spi-ti-qspi.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "9c6f306a8140962c7284197db54b96fdb5f468d6",
              "status": "affected",
              "version": "c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83",
              "versionType": "git"
            },
            {
              "lessThan": "3bbbe7ae3fdada0df4157c1ffe989f92dfa8dcd6",
              "status": "affected",
              "version": "c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83",
              "versionType": "git"
            },
            {
              "lessThan": "d6f422b122922d1abee907d673bcc990e5f3672d",
              "status": "affected",
              "version": "c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83",
              "versionType": "git"
            },
            {
              "lessThan": "f2dc841d7dc9063fe9b47ced869b1271e55052ae",
              "status": "affected",
              "version": "c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83",
              "versionType": "git"
            },
            {
              "lessThan": "1cd927002120678bd5d23c760246639caa53040e",
              "status": "affected",
              "version": "c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83",
              "versionType": "git"
            },
            {
              "lessThan": "d7a076fb596c7b408ed6df74793a597990a6d860",
              "status": "affected",
              "version": "c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83",
              "versionType": "git"
            },
            {
              "lessThan": "178b9b570c0f75fa7e691490520328b20d19138e",
              "status": "affected",
              "version": "c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83",
              "versionType": "git"
            },
            {
              "lessThan": "ea6ec3343e05f7937a53eb6d7617b3abdb4abc19",
              "status": "affected",
              "version": "c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/spi/spi-ti-qspi.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.12"
            },
            {
              "lessThan": "4.12",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.258",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.209",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.175",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.142",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.92",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.34",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.0.*",
              "status": "unaffected",
              "version": "7.0.11",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.258",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.209",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.175",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.142",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.92",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.34",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.0.11",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1",
                  "versionStartIncluding": "4.12",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nspi: ti-qspi: fix use-after-free after DMA setup failure\n\nThe driver falls back to PIO mode if DMA setup fails during probe.\n\nMake sure to clear the DMA channel pointer also if buffer allocation\nfails to avoid passing a pointer to the released channel to the DMA\nengine (or trying to free the channel a second time on late probe errors\nor driver unbind).\n\nThis issue was flagged by Sashiko when reviewing a devres allocation\nconversion patch."
        }
      ],
      "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"
          }
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-07-27T04:58:59.450Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/9c6f306a8140962c7284197db54b96fdb5f468d6"
        },
        {
          "url": "https://git.kernel.org/stable/c/3bbbe7ae3fdada0df4157c1ffe989f92dfa8dcd6"
        },
        {
          "url": "https://git.kernel.org/stable/c/d6f422b122922d1abee907d673bcc990e5f3672d"
        },
        {
          "url": "https://git.kernel.org/stable/c/f2dc841d7dc9063fe9b47ced869b1271e55052ae"
        },
        {
          "url": "https://git.kernel.org/stable/c/1cd927002120678bd5d23c760246639caa53040e"
        },
        {
          "url": "https://git.kernel.org/stable/c/d7a076fb596c7b408ed6df74793a597990a6d860"
        },
        {
          "url": "https://git.kernel.org/stable/c/178b9b570c0f75fa7e691490520328b20d19138e"
        },
        {
          "url": "https://git.kernel.org/stable/c/ea6ec3343e05f7937a53eb6d7617b3abdb4abc19"
        }
      ],
      "title": "spi: ti-qspi: fix use-after-free after DMA setup failure",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-64221",
    "datePublished": "2026-07-24T15:23:07.502Z",
    "dateReserved": "2026-07-19T15:36:31.770Z",
    "dateUpdated": "2026-07-27T04:58:59.450Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-64221",
      "date": "2026-07-31",
      "epss": "0.00126",
      "percentile": "0.02674"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-64221\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-07-24T16:16:49.923\",\"lastModified\":\"2026-07-30T15:00:27.343\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nspi: ti-qspi: fix use-after-free after DMA setup failure\\n\\nThe driver falls back to PIO mode if DMA setup fails during probe.\\n\\nMake sure to clear the DMA channel pointer also if buffer allocation\\nfails to avoid passing a pointer to the released channel to the DMA\\nengine (or trying to free the channel a second time on late probe errors\\nor driver unbind).\\n\\nThis issue was flagged by Sashiko when reviewing a devres allocation\\nconversion patch.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/spi/spi-ti-qspi.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83\",\"lessThan\":\"9c6f306a8140962c7284197db54b96fdb5f468d6\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83\",\"lessThan\":\"3bbbe7ae3fdada0df4157c1ffe989f92dfa8dcd6\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83\",\"lessThan\":\"d6f422b122922d1abee907d673bcc990e5f3672d\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83\",\"lessThan\":\"f2dc841d7dc9063fe9b47ced869b1271e55052ae\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83\",\"lessThan\":\"1cd927002120678bd5d23c760246639caa53040e\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83\",\"lessThan\":\"d7a076fb596c7b408ed6df74793a597990a6d860\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83\",\"lessThan\":\"178b9b570c0f75fa7e691490520328b20d19138e\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83\",\"lessThan\":\"ea6ec3343e05f7937a53eb6d7617b3abdb4abc19\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/spi/spi-ti-qspi.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"4.12\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"4.12\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.10.258\",\"lessThanOrEqual\":\"5.10.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.209\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.175\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.142\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.92\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.34\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.0.11\",\"lessThanOrEqual\":\"7.0.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1\",\"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/178b9b570c0f75fa7e691490520328b20d19138e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/1cd927002120678bd5d23c760246639caa53040e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/3bbbe7ae3fdada0df4157c1ffe989f92dfa8dcd6\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/9c6f306a8140962c7284197db54b96fdb5f468d6\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d6f422b122922d1abee907d673bcc990e5f3672d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d7a076fb596c7b408ed6df74793a597990a6d860\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ea6ec3343e05f7937a53eb6d7617b3abdb4abc19\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/f2dc841d7dc9063fe9b47ced869b1271e55052ae\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "None",
      "current_release_date": "2026-07-28T11:54:07+00:00",
      "cve": "CVE-2026-64221",
      "id": "CVE-2026-64221",
      "initial_release_date": "2026-07-24T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: spi: ti-qspi: fix use-after-free after DMA setup failure",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-64221.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "important",
      "current_release_date": "2026-07-30T16:32:45Z",
      "cve": "CVE-2026-64221",
      "id": "CVE-2026-64221",
      "initial_release_date": "2026-07-25T00:14:16Z",
      "product_status:known_affected": "191",
      "product_status:known_not_affected": "107",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-64221",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2026-64221.json",
      "version": "5"
    }
  }
}



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…