{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "6bf32599223634294cdc6efb359ffaab1d68073c"
            },
            {
              "fixed": "b451f38cb7f5bca78484362347f039c08c94de95"
            },
            {
              "fixed": "1d753df5899ec356272d08bc4718e82844e4bdf0"
            },
            {
              "fixed": "f312ef5026678f14caf1378c5f7fffdf667f9c81"
            },
            {
              "fixed": "966d23c7e68ea32679275a7e3d2383181002c868"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.3.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"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/90xxx/CVE-2026-90397.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nfirmware: qcom: scm: Fix NULL dereference in IRQ handler before __scm is published\n\nIn qcom_scm_probe(), devm_request_threaded_irq() is called before\nsmp_store_release(\u0026__scm, scm). Two paths can dereference __scm before\nit is published, both causing a NULL pointer dereference.\n\nThe IRQ handler receives scm via its data argument but passes only wq_ctx\nto qcom_scm_waitq_wakeup() and qcom_scm_get_completion(), which then\ndereference __scm directly. Thread scm through both functions so the IRQ\nhandler path never touches __scm.\n\nNon-atomic SMC calls made during probe (e.g. from qcom_tzmem_init via\nqcom_scm_shm_bridge_enable) can return WAITQ_SLEEP, causing\nqcom_scm_wait_for_wq_completion() to run before __scm is published and\ndereference it. Add platform_set_drvdata(pdev, scm) early in probe and\nchange qcom_scm_wait_for_wq_completion() to take the device pointer and\nuse dev_get_drvdata() to reach scm, removing any dependency on __scm.",
  "id": "CVE-2026-90397",
  "modified": "2026-09-19T03:30:56.407343893Z",
  "published": "2026-09-17T16:09:28.967Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1d753df5899ec356272d08bc4718e82844e4bdf0"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/966d23c7e68ea32679275a7e3d2383181002c868"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b451f38cb7f5bca78484362347f039c08c94de95"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f312ef5026678f14caf1378c5f7fffdf667f9c81"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/90xxx/CVE-2026-90397.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-90397"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.0",
  "summary": "firmware: qcom: scm: Fix NULL dereference in IRQ handler before __scm is published"
}