{"id":"CVE-2026-139777","state":"PUBLISHED","title":"remoteproc: xlnx: Initialize mailbox work before requesting channels","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nremoteproc: xlnx: Initialize mailbox work before requesting channels\n\nzynqmp_r5_setup_mbox() installs zynqmp_r5_mb_rx_cb() as the mailbox RX\ncallback before requesting the mailbox channels, but initializes\nipi->mbox_work only after both channels have been requested. Once the RX\nchannel is active, a notification delivered before the late INIT_WORK()\nwould make the callback queue an uninitialized work item.\n\nInitialize the work item before requesting channels. Also drain the work\nbefore freeing the mailbox state, after the channels have been released so\nno new callbacks can queue it. Use the same drain before freeing ipi from\nthe channel request error paths, since the callback is already published\nthere as well.\n\nThis issue was found by our static analysis tool and then confirmed by\nmanual review of the mailbox setup sequence. The callback is published\nbefore the channel requests complete, so the work item should be ready\nbefore the mailbox provider can invoke it.\n\nA QEMU PoC modeled a mailbox notification delivered after the RX callback\nbecame reachable but before the delayed INIT_WORK(). DEBUG_OBJECTS reported\nqueueing an uninitialized work item from the zynqmp_r5_setup_mbox() path.\n\nThis is sent as an RFC because the practical trigger depends on the ZynqMP\nIPI mailbox provider and firmware delivery timing. If the provider cannot\ninvoke the RX callback until after setup returns, this is a defensive\nlifecycle cleanup rather than a reachable race on current systems.","publishedAt":"2026-11-30T13:37:54.584Z","updatedAt":"2026-11-30T13:37:54.584Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5dfb28c257b7c515624ba6b163410ceada451bf2","status":"affected","lessThan":"af43b5d8e66bc465a980edc298a375acada14213","versionType":"git"},{"version":"5dfb28c257b7c515624ba6b163410ceada451bf2","status":"affected","lessThan":"68e1f11ee053146baf62bfa8891ad4fe17717ff4","versionType":"git"},{"version":"5dfb28c257b7c515624ba6b163410ceada451bf2","status":"affected","lessThan":"878a95a023735eb9555e71379b27c11c34e06ecf","versionType":"git"},{"version":"5dfb28c257b7c515624ba6b163410ceada451bf2","status":"affected","lessThan":"206fabdec2299f3f5d5109fec7cc9584c14673d5","versionType":"git"},{"version":"5dfb28c257b7c515624ba6b163410ceada451bf2","status":"affected","lessThan":"5ca7dea7cb2e47f42c15ac7206c5e0cba23d292d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/remoteproc/xlnx_r5_remoteproc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.4","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/remoteproc/xlnx_r5_remoteproc.c"]}],"references":["https://git.kernel.org/stable/c/af43b5d8e66bc465a980edc298a375acada14213","https://git.kernel.org/stable/c/68e1f11ee053146baf62bfa8891ad4fe17717ff4","https://git.kernel.org/stable/c/878a95a023735eb9555e71379b27c11c34e06ecf","https://git.kernel.org/stable/c/206fabdec2299f3f5d5109fec7cc9584c14673d5","https://git.kernel.org/stable/c/5ca7dea7cb2e47f42c15ac7206c5e0cba23d292d"],"weaknesses":[],"ingestedAt":"2026-11-30T13:56:04.579Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139777.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139777","state":"PUBLISHED","datePublished":"2026-11-30T13:37:54.584Z","dateUpdated":"2026-11-30T13:37:54.584Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.952Z"},"containers":{"cna":{"title":"remoteproc: xlnx: Initialize mailbox work before requesting channels","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nremoteproc: xlnx: Initialize mailbox work before requesting channels\n\nzynqmp_r5_setup_mbox() installs zynqmp_r5_mb_rx_cb() as the mailbox RX\ncallback before requesting the mailbox channels, but initializes\nipi->mbox_work only after both channels have been requested. Once the RX\nchannel is active, a notification delivered before the late INIT_WORK()\nwould make the callback queue an uninitialized work item.\n\nInitialize the work item before requesting channels. Also drain the work\nbefore freeing the mailbox state, after the channels have been released so\nno new callbacks can queue it. Use the same drain before freeing ipi from\nthe channel request error paths, since the callback is already published\nthere as well.\n\nThis issue was found by our static analysis tool and then confirmed by\nmanual review of the mailbox setup sequence. The callback is published\nbefore the channel requests complete, so the work item should be ready\nbefore the mailbox provider can invoke it.\n\nA QEMU PoC modeled a mailbox notification delivered after the RX callback\nbecame reachable but before the delayed INIT_WORK(). DEBUG_OBJECTS reported\nqueueing an uninitialized work item from the zynqmp_r5_setup_mbox() path.\n\nThis is sent as an RFC because the practical trigger depends on the ZynqMP\nIPI mailbox provider and firmware delivery timing. If the provider cannot\ninvoke the RX callback until after setup returns, this is a defensive\nlifecycle cleanup rather than a reachable race on current systems."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5dfb28c257b7c515624ba6b163410ceada451bf2","status":"affected","lessThan":"af43b5d8e66bc465a980edc298a375acada14213","versionType":"git"},{"version":"5dfb28c257b7c515624ba6b163410ceada451bf2","status":"affected","lessThan":"68e1f11ee053146baf62bfa8891ad4fe17717ff4","versionType":"git"},{"version":"5dfb28c257b7c515624ba6b163410ceada451bf2","status":"affected","lessThan":"878a95a023735eb9555e71379b27c11c34e06ecf","versionType":"git"},{"version":"5dfb28c257b7c515624ba6b163410ceada451bf2","status":"affected","lessThan":"206fabdec2299f3f5d5109fec7cc9584c14673d5","versionType":"git"},{"version":"5dfb28c257b7c515624ba6b163410ceada451bf2","status":"affected","lessThan":"5ca7dea7cb2e47f42c15ac7206c5e0cba23d292d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/remoteproc/xlnx_r5_remoteproc.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.4","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/remoteproc/xlnx_r5_remoteproc.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/af43b5d8e66bc465a980edc298a375acada14213"},{"url":"https://git.kernel.org/stable/c/68e1f11ee053146baf62bfa8891ad4fe17717ff4"},{"url":"https://git.kernel.org/stable/c/878a95a023735eb9555e71379b27c11c34e06ecf"},{"url":"https://git.kernel.org/stable/c/206fabdec2299f3f5d5109fec7cc9584c14673d5"},{"url":"https://git.kernel.org/stable/c/5ca7dea7cb2e47f42c15ac7206c5e0cba23d292d"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:37:54.584Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.4","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}