CVE-2026-139777

remoteproc: xlnx: Initialize mailbox work before requesting channels

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

remoteproc: xlnx: Initialize mailbox work before requesting channels

zynqmp_r5_setup_mbox() installs zynqmp_r5_mb_rx_cb() as the mailbox RX
callback before requesting the mailbox channels, but initializes
ipi->mbox_work only after both channels have been requested. Once the RX
channel is active, a notification delivered before the late INIT_WORK()
would make the callback queue an uninitialized work item.

Initialize the work item before requesting channels. Also drain the work
before freeing the mailbox state, after the channels have been released so
no new callbacks can queue it. Use the same drain before freeing ipi from
the channel request error paths, since the callback is already published
there as well.

This issue was found by our static analysis tool and then confirmed by
manual review of the mailbox setup sequence. The callback is published
before the channel requests complete, so the work item should be ready
before the mailbox provider can invoke it.

A QEMU PoC modeled a mailbox notification delivered after the RX callback
became reachable but before the delayed INIT_WORK(). DEBUG_OBJECTS reported
queueing an uninitialized work item from the zynqmp_r5_setup_mbox() path.

This is sent as an RFC because the practical trigger depends on the ZynqMP
IPI mailbox provider and firmware delivery timing. If the provider cannot
invoke the RX callback until after setup returns, this is a defensive
lifecycle cleanup rather than a reachable race on current systems.

Analysis

AI-generated

Technical impact

The vulnerability arises from a race condition in the Linux kernel’s remoteproc driver for Xilinx ZynqMP devices. During mailbox setup, the callback for receiving mailbox notifications is registered before the work item that processes those callbacks is initialized. If an interrupt occurs before the delayed INIT_WORK() has run, the callback queue ends up holding an uninitialized work structure. Executing that uninitialized work can lead to undefined behavior, potentially allowing an attacker to execute arbitrary code with kernel privileges.

Affected Systems

The flaw affects all Linux kernels that include the xlnx remoteproc driver for ZynqMP systems – in particular the zynqmp_r5_setup_mbox() code path. Any distribution or custom kernel that compiles this driver is vulnerable until the upstream patch that initializes the work item before channel request is applied. The issue is specific to the Linux kernel; no other vendors are listed.

Risk and Exploitability

Because the vulnerability was identified by static analysis and validated with a QEMU proof‑of‑concept, its exploitation depends on the IPI mailbox provider and the timing of firmware delivery. The CISA KEV catalog lists it as not present, and no EPSS score is available. The lack of a published CVSS score makes it difficult to rate the severity formally, but the possibility of arbitrary code execution in kernel space indicates a high risk. If the fault occurs, an attacker could gain full root privileges on the affected device.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the upstream patch that initializes the work item before channel requests, as available in the kernel tree.
  • Replace the running kernel on all affected ZynqMP devices with the updated kernel image or apply the patch using backport if using older kernel versions.
  • If an immediate kernel upgrade is infeasible, adjust firmware or driver configuration to postpone mailbox notifications until after the remoteproc setup completes; otherwise disable the ZynqMP remoteproc driver if mailbox functionality is not required.

Generated by OpenCVE AI on December 1, 2026 at 01:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
CWE-665
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: remoteproc: xlnx: Initialize mailbox work before requesting channels zynqmp_r5_setup_mbox() installs zynqmp_r5_mb_rx_cb() as the mailbox RX callback before requesting the mailbox channels, but initializes ipi->mbox_work only after both channels have been requested. Once the RX channel is active, a notification delivered before the late INIT_WORK() would make the callback queue an uninitialized work item. Initialize the work item before requesting channels. Also drain the work before freeing the mailbox state, after the channels have been released so no new callbacks can queue it. Use the same drain before freeing ipi from the channel request error paths, since the callback is already published there as well. This issue was found by our static analysis tool and then confirmed by manual review of the mailbox setup sequence. The callback is published before the channel requests complete, so the work item should be ready before the mailbox provider can invoke it. A QEMU PoC modeled a mailbox notification delivered after the RX callback became reachable but before the delayed INIT_WORK(). DEBUG_OBJECTS reported queueing an uninitialized work item from the zynqmp_r5_setup_mbox() path. This is sent as an RFC because the practical trigger depends on the ZynqMP IPI mailbox provider and firmware delivery timing. If the provider cannot invoke the RX callback until after setup returns, this is a defensive lifecycle cleanup rather than a reachable race on current systems.
Title remoteproc: xlnx: Initialize mailbox work before requesting channels
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-665

    Improper Initialization

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:37 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:20 PM
Modified
Nov 30, 2026, 2:20 PM