{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "58ecdf03dbb9ce8f130bc1ac63fcd8f4d72f9c06"
            },
            {
              "fixed": "71d011d9bf51b3dc2940efbf88dab94f4ab5fa95"
            },
            {
              "fixed": "2b86bb6c25eb38592b3aea6c7e86b1989d64f0c8"
            },
            {
              "fixed": "8b20e1481bcb241b93c308be032d0d2972c0de90"
            },
            {
              "fixed": "93099612462eb34cf811233f6a9262ae0428751a"
            },
            {
              "fixed": "49fc5bc04eec2b7687d49ccceb7adf6ace640a3b"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.4.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.119"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.65"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139715.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nfirmware: arm_scmi: Protect xfer-\u003easync_done with xfer-\u003elock\n\nAsynchronous SCMI commands are completed by a delayed response. The RX\npath signals the response with complete(xfer-\u003easync_done). Unlike\nxfer-\u003edone, xfer-\u003easync_done is a pointer to a completion owned by\nwhoever is waiting for the delayed response, and it stays valid only for\nas long as that waiter is still waiting.  In do_xfer_with_response() it\nis a DECLARE_COMPLETION_ONSTACK() in the caller's stack frame.\n\nNothing serialises the RX path against a waiter that gives up on a\ntimeout. scmi_msg_response_validate() does read xfer-\u003easync_done\nunder xfer-\u003elock, and documents that as a requirement, but the lock is\ndropped again before scmi_handle_response() dereferences the pointer,\nand neither the arming nor the disarming side takes it at all. So a\ndelayed response arriving just as the wait times out can be signalled\non a completion that is already gone:\n\n  waiter                                RX path (IRQ context)\n  ------                                ---------------------\n  do_xfer_with_response():\n    xfer-\u003easync_done = \u0026async_response\n    do_xfer(xfer)\n    wait_for_completion_timeout(xfer-\u003easync_done, tmo)\n    /* returns 0, gives up */\n                                        /* response receive interrupt */\n                                        scmi_handle_response():\n                                          scmi_xfer_command_acquire()\n                                            lock xfer-\u003elock\n                                            validate: async_done != NULL\n                                            unlock xfer-\u003elock\n    xfer-\u003easync_done = NULL\n    return -ETIMEDOUT\n    /* async_response goes out of scope */\n                                          complete(xfer-\u003easync_done)\n\nThat last complete() has two possible bad outcomes: it either dereferences\nthe NULL just stored by the waiter or - if that store is not yet visible\non the RX CPU - it takes a lock and writes to a stack frame that the\nwaiter may already have returned from.\n\nFix this by making xfer-\u003elock cover xfer-\u003easync_done end-to-end. Add\nhelpers to arm and disarm it under the lock, use them on both the regular\nand the raw paths, and have the RX path read and signal the completion\nunder that same lock. A waiter that is timing out then either completes\nits disarm before the RX path looks, in which case the delayed response is\ndropped, or blocks in the disarm until the RX path is done with the\ncompletion, in which case the completion is still alive.\n\nLog the dropped case, so every path where a delayed response that was\nmatched to a pending xfer and then discarded produces an error. (This is\nthe same treatment scmi_msg_response_validate() already gives a\ndelayed response that arrives after the waiter has disarmed the xfer)",
  "id": "CVE-2026-139715",
  "modified": "2026-11-30T14:45:25.297389562Z",
  "published": "2026-11-30T13:37:18.271Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2b86bb6c25eb38592b3aea6c7e86b1989d64f0c8"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/49fc5bc04eec2b7687d49ccceb7adf6ace640a3b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/71d011d9bf51b3dc2940efbf88dab94f4ab5fa95"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8b20e1481bcb241b93c308be032d0d2972c0de90"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/93099612462eb34cf811233f6a9262ae0428751a"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139715.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139715"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "firmware: arm_scmi: Protect xfer-\u003easync_done with xfer-\u003elock"
}