Skip to content
Heist/ feed
Back to feed
UnratedFix available

spi: oc-tiny: switch to managed controller allocation

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: spi: oc-tiny: switch to managed controller allocation The controller is allocated with the non-managed spi_alloc_host() while the interrupt is registered with devm_request_irq(). During removal, spi_bitbang_stop() only unregisters the controller; the subsequent spi_controller_put() then frees the controller together with its embedded driver-private devdata, which is the IRQ handler's dev_id. The devm_request_irq() release action (free_irq()), which drains the handler, does not run until after .remove() returns. A late or latched interrupt can therefore reach tiny_spi_irq() and dereference already-freed memory (e.g. hw->base). Switch to devm_spi_alloc_host() so that the devres LIFO order releases the controller only after free_irq() has drained the handler, and drop the now-redundant spi_controller_put() from .remove(). The probe error path is simplified to direct returns. This issue was found by an in-house static analysis tool.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.191, 6.12.110, 6.18.52, 6.6.160, 7.2.6
CVEs
CVE-2026-90433
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 02:38 UTC · Revision 1

Source evidence

spi: oc-tiny: switch to managed controller allocation

core-osv · Original source

Published 17 Sept 2026, 16:09 UTC

In the Linux kernel, the following vulnerability has been resolved: spi: oc-tiny: switch to managed controller allocation The controller is allocated with the non-managed spi_alloc_host() while the interrupt is registered with devm_request_irq(). During removal, spi_bitbang_stop() only unregisters the controller; the subsequent spi_controller_put() then frees the controller together with its embedded driver-private devdata, which is the IRQ handler's dev_id. The devm_request_irq() release action (free_irq()), which drains the handler, does not run until after .remove() returns. A late or latched interrupt can therefore reach tiny_spi_irq() and dereference already-freed memory (e.g. hw->base). Switch to devm_spi_alloc_host() so that the devres LIFO order releases the controller only after free_irq() has drained the handler, and drop the now-redundant spi_controller_put() from .remove(). The probe error path is simplified to direct returns. This issue was found by an in-house static analysis tool.

osv:CVE-2026-90433

Kernel

Fixed versions: 6.1.191, 6.6.160, 6.12.110, 6.18.52, 7.2.6

Complete source record
{
  "id": "361cba372bec0eca7567d9ae7adef356f117bd3b45b285655688dc1264840306",
  "url": "https://osv.dev/vulnerability/CVE-2026-90433",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "spi: oc-tiny: switch to managed controller allocation",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: spi: oc-tiny: switch to managed controller allocation The controller is allocated with the non-managed spi_alloc_host() while the interrupt is registered with devm_request_irq(). During removal, spi_bitbang_stop() only unregisters the controller; the subsequent spi_controller_put() then frees the controller together with its embedded driver-private devdata, which is the IRQ handler's dev_id. The devm_request_irq() release action (free_irq()), which drains the handler, does not run until after .remove() returns. A late or latched interrupt can therefore reach tiny_spi_irq() and dereference already-freed memory (e.g. hw->base). Switch to devm_spi_alloc_host() so that the devres LIFO order releases the controller only after free_irq() has drained the handler, and drop the now-redundant spi_controller_put() from .remove(). The probe error path is simplified to direct returns. This issue was found by an in-house static analysis tool.",
    "evidence": "osv:CVE-2026-90433",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.191",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.160",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.110",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.52",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.2.6",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-90433",
      "aliases": [
        "CVE-2026-90433"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "ce792580ea2ce6f7259b45124e9ccc4574c31606"
                },
                {
                  "fixed": "a2f1c58864fc3612c230a9d5cc1929e1ffe348ac"
                },
                {
                  "fixed": "9265fa8190312b87637def1382d36fc16de3b8e8"
                },
                {
                  "fixed": "0260c94453a08491640e61f8cf0c384edbe7bd11"
                },
                {
                  "fixed": "ef5cc4a8c088d05549f71950a72b5deff5000fd7"
                },
                {
                  "fixed": "1cd16c8d68f58e54abb8f331d05469237200631f"
                },
                {
                  "fixed": "d710f43ce30975d197f73c543bfe47b958d8ba17"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-90433.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6.39"
                },
                {
                  "fixed": "6.1.191"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.160"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.110"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.52"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.2.6"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-90433.json"
          }
        }
      ],
      "modified": "2026-11-01T02:31:00.660255358Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/0260c94453a08491640e61f8cf0c384edbe7bd11",
        "https://git.kernel.org/stable/c/1cd16c8d68f58e54abb8f331d05469237200631f",
        "https://git.kernel.org/stable/c/9265fa8190312b87637def1382d36fc16de3b8e8",
        "https://git.kernel.org/stable/c/a2f1c58864fc3612c230a9d5cc1929e1ffe348ac",
        "https://git.kernel.org/stable/c/d710f43ce30975d197f73c543bfe47b958d8ba17",
        "https://git.kernel.org/stable/c/ef5cc4a8c088d05549f71950a72b5deff5000fd7",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/90xxx/CVE-2026-90433.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-90433",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/90xxx/CVE-2026-90433.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-90433",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 521859,
  "published_at": "2026-09-17T16:09:53.085+00:00"
}