{"id":"CVE-2026-90433","state":"PUBLISHED","title":"spi: oc-tiny: switch to managed controller allocation","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: oc-tiny: switch to managed controller allocation\n\nThe controller is allocated with the non-managed spi_alloc_host() while\nthe interrupt is registered with devm_request_irq().  During removal,\nspi_bitbang_stop() only unregisters the controller; the subsequent\nspi_controller_put() then frees the controller together with its\nembedded driver-private devdata, which is the IRQ handler's dev_id.  The\ndevm_request_irq() release action (free_irq()), which drains the\nhandler, does not run until after .remove() returns.  A late or latched\ninterrupt can therefore reach tiny_spi_irq() and dereference\nalready-freed memory (e.g. hw->base).\n\nSwitch to devm_spi_alloc_host() so that the devres LIFO order releases\nthe controller only after free_irq() has drained the handler, and drop\nthe now-redundant spi_controller_put() from .remove().  The probe error\npath is simplified to direct returns.\n\nThis issue was found by an in-house static analysis tool.","publishedAt":"2026-09-17T16:09:53.085Z","updatedAt":"2026-10-30T12:35:35.625Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ce792580ea2ce6f7259b45124e9ccc4574c31606","status":"affected","lessThan":"a2f1c58864fc3612c230a9d5cc1929e1ffe348ac","versionType":"git"},{"version":"ce792580ea2ce6f7259b45124e9ccc4574c31606","status":"affected","lessThan":"9265fa8190312b87637def1382d36fc16de3b8e8","versionType":"git"},{"version":"ce792580ea2ce6f7259b45124e9ccc4574c31606","status":"affected","lessThan":"0260c94453a08491640e61f8cf0c384edbe7bd11","versionType":"git"},{"version":"ce792580ea2ce6f7259b45124e9ccc4574c31606","status":"affected","lessThan":"ef5cc4a8c088d05549f71950a72b5deff5000fd7","versionType":"git"},{"version":"ce792580ea2ce6f7259b45124e9ccc4574c31606","status":"affected","lessThan":"1cd16c8d68f58e54abb8f331d05469237200631f","versionType":"git"},{"version":"ce792580ea2ce6f7259b45124e9ccc4574c31606","status":"affected","lessThan":"d710f43ce30975d197f73c543bfe47b958d8ba17","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/spi/spi-oc-tiny.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.39","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.39","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/spi/spi-oc-tiny.c"]}],"references":["https://git.kernel.org/stable/c/a2f1c58864fc3612c230a9d5cc1929e1ffe348ac","https://git.kernel.org/stable/c/9265fa8190312b87637def1382d36fc16de3b8e8","https://git.kernel.org/stable/c/0260c94453a08491640e61f8cf0c384edbe7bd11","https://git.kernel.org/stable/c/ef5cc4a8c088d05549f71950a72b5deff5000fd7","https://git.kernel.org/stable/c/1cd16c8d68f58e54abb8f331d05469237200631f","https://git.kernel.org/stable/c/d710f43ce30975d197f73c543bfe47b958d8ba17"],"weaknesses":[],"ingestedAt":"2026-10-30T12:54:04.478Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/90xxx/CVE-2026-90433.json","commit":"1f312381e38164a43607eebab851b151dd16861e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-90433","state":"PUBLISHED","datePublished":"2026-09-17T16:09:53.085Z","dateUpdated":"2026-10-30T12:35:35.625Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.815Z"},"containers":{"cna":{"title":"spi: oc-tiny: switch to managed controller allocation","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: oc-tiny: switch to managed controller allocation\n\nThe controller is allocated with the non-managed spi_alloc_host() while\nthe interrupt is registered with devm_request_irq().  During removal,\nspi_bitbang_stop() only unregisters the controller; the subsequent\nspi_controller_put() then frees the controller together with its\nembedded driver-private devdata, which is the IRQ handler's dev_id.  The\ndevm_request_irq() release action (free_irq()), which drains the\nhandler, does not run until after .remove() returns.  A late or latched\ninterrupt can therefore reach tiny_spi_irq() and dereference\nalready-freed memory (e.g. hw->base).\n\nSwitch to devm_spi_alloc_host() so that the devres LIFO order releases\nthe controller only after free_irq() has drained the handler, and drop\nthe now-redundant spi_controller_put() from .remove().  The probe error\npath is simplified to direct returns.\n\nThis issue was found by an in-house static analysis tool."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ce792580ea2ce6f7259b45124e9ccc4574c31606","status":"affected","lessThan":"a2f1c58864fc3612c230a9d5cc1929e1ffe348ac","versionType":"git"},{"version":"ce792580ea2ce6f7259b45124e9ccc4574c31606","status":"affected","lessThan":"9265fa8190312b87637def1382d36fc16de3b8e8","versionType":"git"},{"version":"ce792580ea2ce6f7259b45124e9ccc4574c31606","status":"affected","lessThan":"0260c94453a08491640e61f8cf0c384edbe7bd11","versionType":"git"},{"version":"ce792580ea2ce6f7259b45124e9ccc4574c31606","status":"affected","lessThan":"ef5cc4a8c088d05549f71950a72b5deff5000fd7","versionType":"git"},{"version":"ce792580ea2ce6f7259b45124e9ccc4574c31606","status":"affected","lessThan":"1cd16c8d68f58e54abb8f331d05469237200631f","versionType":"git"},{"version":"ce792580ea2ce6f7259b45124e9ccc4574c31606","status":"affected","lessThan":"d710f43ce30975d197f73c543bfe47b958d8ba17","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/spi/spi-oc-tiny.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.39","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.39","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/spi/spi-oc-tiny.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/a2f1c58864fc3612c230a9d5cc1929e1ffe348ac"},{"url":"https://git.kernel.org/stable/c/9265fa8190312b87637def1382d36fc16de3b8e8"},{"url":"https://git.kernel.org/stable/c/0260c94453a08491640e61f8cf0c384edbe7bd11"},{"url":"https://git.kernel.org/stable/c/ef5cc4a8c088d05549f71950a72b5deff5000fd7"},{"url":"https://git.kernel.org/stable/c/1cd16c8d68f58e54abb8f331d05469237200631f"},{"url":"https://git.kernel.org/stable/c/d710f43ce30975d197f73c543bfe47b958d8ba17"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:35:35.625Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.39","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.39","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.39","versionEndExcluding":"6.12.110"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.39","versionEndExcluding":"6.18.52"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.39","versionEndExcluding":"7.2.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.39","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}