{"id":"CVE-2026-90397","aliases":["CVE-2026-90397"],"related":[],"kind":"vulnerability","state":"published","title":"firmware: qcom: scm: Fix NULL dereference in IRQ handler before __scm is published","summary":"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(&__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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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(&__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.","source":"cvelist"}],"published":"2026-09-17T16:09:28.967Z","modified":"2026-10-21T13:20:53.620Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"6bf32599223634294cdc6efb359ffaab1d68073c","fixed":"c9c1e3da0a206270e5df470ca1c82de52190d68c","status":"affected"},{"type":"git","introduced":"6bf32599223634294cdc6efb359ffaab1d68073c","fixed":"b451f38cb7f5bca78484362347f039c08c94de95","status":"affected"},{"type":"git","introduced":"6bf32599223634294cdc6efb359ffaab1d68073c","fixed":"1d753df5899ec356272d08bc4718e82844e4bdf0","status":"affected"},{"type":"git","introduced":"6bf32599223634294cdc6efb359ffaab1d68073c","fixed":"f312ef5026678f14caf1378c5f7fffdf667f9c81","status":"affected"},{"type":"git","introduced":"6bf32599223634294cdc6efb359ffaab1d68073c","fixed":"966d23c7e68ea32679275a7e3d2383181002c868","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.3","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.110","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.52","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.6","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/c9c1e3da0a206270e5df470ca1c82de52190d68c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b451f38cb7f5bca78484362347f039c08c94de95","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1d753df5899ec356272d08bc4718e82844e4bdf0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f312ef5026678f14caf1378c5f7fffdf667f9c81","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/966d23c7e68ea32679275a7e3d2383181002c868","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-90397","url":"https://www.cve.org/CVERecord?id=CVE-2026-90397","licence":"CVE Terms of Use","modified":"2026-10-21T12:51:27.984Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-90397","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90397","licence":"Public domain","modified":"2026-10-21T13:20:53.620Z"}],"updatedAt":"2026-11-25T22:59:39.404Z","epss":{"score":0.00201,"percentile":0.10458,"date":"2026-12-02T12:00:21.000Z"}}