{"api_version":"1","generated_at":"2026-11-30T18:30:36+00:00","cve":"CVE-2026-139715","urls":{"html":"https://cve.report/CVE-2026-139715","api":"https://cve.report/api/cve/CVE-2026-139715.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139715","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139715"},"summary":{"title":"firmware: arm_scmi: Protect xfer->async_done with xfer->lock","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nfirmware: arm_scmi: Protect xfer->async_done with xfer->lock\n\nAsynchronous SCMI commands are completed by a delayed response. The RX\npath signals the response with complete(xfer->async_done). Unlike\nxfer->done, xfer->async_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->async_done\nunder xfer->lock, 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->async_done = &async_response\n    do_xfer(xfer)\n    wait_for_completion_timeout(xfer->async_done, tmo)\n    /* returns 0, gives up */\n                                        /* response receive interrupt */\n                                        scmi_handle_response():\n                                          scmi_xfer_command_acquire()\n                                            lock xfer->lock\n                                            validate: async_done != NULL\n                                            unlock xfer->lock\n    xfer->async_done = NULL\n    return -ETIMEDOUT\n    /* async_response goes out of scope */\n                                          complete(xfer->async_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->lock cover xfer->async_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)","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:20:02","updated_at":"2026-11-30 14:20:02"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/93099612462eb34cf811233f6a9262ae0428751a","name":"https://git.kernel.org/stable/c/93099612462eb34cf811233f6a9262ae0428751a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2b86bb6c25eb38592b3aea6c7e86b1989d64f0c8","name":"https://git.kernel.org/stable/c/2b86bb6c25eb38592b3aea6c7e86b1989d64f0c8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/71d011d9bf51b3dc2940efbf88dab94f4ab5fa95","name":"https://git.kernel.org/stable/c/71d011d9bf51b3dc2940efbf88dab94f4ab5fa95","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/49fc5bc04eec2b7687d49ccceb7adf6ace640a3b","name":"https://git.kernel.org/stable/c/49fc5bc04eec2b7687d49ccceb7adf6ace640a3b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8b20e1481bcb241b93c308be032d0d2972c0de90","name":"https://git.kernel.org/stable/c/8b20e1481bcb241b93c308be032d0d2972c0de90","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139715","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139715","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 58ecdf03dbb9ce8f130bc1ac63fcd8f4d72f9c06 71d011d9bf51b3dc2940efbf88dab94f4ab5fa95 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 58ecdf03dbb9ce8f130bc1ac63fcd8f4d72f9c06 2b86bb6c25eb38592b3aea6c7e86b1989d64f0c8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 58ecdf03dbb9ce8f130bc1ac63fcd8f4d72f9c06 8b20e1481bcb241b93c308be032d0d2972c0de90 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 58ecdf03dbb9ce8f130bc1ac63fcd8f4d72f9c06 93099612462eb34cf811233f6a9262ae0428751a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 58ecdf03dbb9ce8f130bc1ac63fcd8f4d72f9c06 49fc5bc04eec2b7687d49ccceb7adf6ace640a3b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.4","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.4 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/firmware/arm_scmi/common.h","drivers/firmware/arm_scmi/driver.c","drivers/firmware/arm_scmi/protocols.h","drivers/firmware/arm_scmi/raw_mode.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"71d011d9bf51b3dc2940efbf88dab94f4ab5fa95","status":"affected","version":"58ecdf03dbb9ce8f130bc1ac63fcd8f4d72f9c06","versionType":"git"},{"lessThan":"2b86bb6c25eb38592b3aea6c7e86b1989d64f0c8","status":"affected","version":"58ecdf03dbb9ce8f130bc1ac63fcd8f4d72f9c06","versionType":"git"},{"lessThan":"8b20e1481bcb241b93c308be032d0d2972c0de90","status":"affected","version":"58ecdf03dbb9ce8f130bc1ac63fcd8f4d72f9c06","versionType":"git"},{"lessThan":"93099612462eb34cf811233f6a9262ae0428751a","status":"affected","version":"58ecdf03dbb9ce8f130bc1ac63fcd8f4d72f9c06","versionType":"git"},{"lessThan":"49fc5bc04eec2b7687d49ccceb7adf6ace640a3b","status":"affected","version":"58ecdf03dbb9ce8f130bc1ac63fcd8f4d72f9c06","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/firmware/arm_scmi/common.h","drivers/firmware/arm_scmi/driver.c","drivers/firmware/arm_scmi/protocols.h","drivers/firmware/arm_scmi/raw_mode.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.4"},{"lessThan":"5.4","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"5.4","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.4","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nfirmware: arm_scmi: Protect xfer->async_done with xfer->lock\n\nAsynchronous SCMI commands are completed by a delayed response. The RX\npath signals the response with complete(xfer->async_done). Unlike\nxfer->done, xfer->async_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->async_done\nunder xfer->lock, 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->async_done = &async_response\n    do_xfer(xfer)\n    wait_for_completion_timeout(xfer->async_done, tmo)\n    /* returns 0, gives up */\n                                        /* response receive interrupt */\n                                        scmi_handle_response():\n                                          scmi_xfer_command_acquire()\n                                            lock xfer->lock\n                                            validate: async_done != NULL\n                                            unlock xfer->lock\n    xfer->async_done = NULL\n    return -ETIMEDOUT\n    /* async_response goes out of scope */\n                                          complete(xfer->async_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->lock cover xfer->async_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)"}],"providerMetadata":{"dateUpdated":"2026-11-30T13:37:18.271Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/71d011d9bf51b3dc2940efbf88dab94f4ab5fa95"},{"url":"https://git.kernel.org/stable/c/2b86bb6c25eb38592b3aea6c7e86b1989d64f0c8"},{"url":"https://git.kernel.org/stable/c/8b20e1481bcb241b93c308be032d0d2972c0de90"},{"url":"https://git.kernel.org/stable/c/93099612462eb34cf811233f6a9262ae0428751a"},{"url":"https://git.kernel.org/stable/c/49fc5bc04eec2b7687d49ccceb7adf6ace640a3b"}],"title":"firmware: arm_scmi: Protect xfer->async_done with xfer->lock","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139715","datePublished":"2026-11-30T13:37:18.271Z","dateReserved":"2026-11-30T13:22:15.949Z","dateUpdated":"2026-11-30T13:37:18.271Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:20:02","lastModifiedDate":"2026-11-30 14:20:02","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139715","Ordinal":"1","Title":"firmware: arm_scmi: Protect xfer->async_done with xfer->lock","CVE":"CVE-2026-139715","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139715","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nfirmware: arm_scmi: Protect xfer->async_done with xfer->lock\n\nAsynchronous SCMI commands are completed by a delayed response. The RX\npath signals the response with complete(xfer->async_done). Unlike\nxfer->done, xfer->async_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->async_done\nunder xfer->lock, 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->async_done = &async_response\n    do_xfer(xfer)\n    wait_for_completion_timeout(xfer->async_done, tmo)\n    /* returns 0, gives up */\n                                        /* response receive interrupt */\n                                        scmi_handle_response():\n                                          scmi_xfer_command_acquire()\n                                            lock xfer->lock\n                                            validate: async_done != NULL\n                                            unlock xfer->lock\n    xfer->async_done = NULL\n    return -ETIMEDOUT\n    /* async_response goes out of scope */\n                                          complete(xfer->async_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->lock cover xfer->async_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)","Type":"Description","Title":"firmware: arm_scmi: Protect xfer->async_done with xfer->lock"}]}}}