CVE-2026-138913

media: amphion: drain message work before releasing core state

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

media: amphion: drain message work before releasing core state

vpu_core_unregister() frees core->msg_buffer before cancelling the message
workers, although core->msg_fifo still uses the buffer as its backing
storage. A queued worker can read it after it has been freed.

Drain the core and instance message work first, then release core->vpu
and the FIFO buffer. This follows the ordering in vpu_core_suspend().

Analysis

AI-generated

Technical impact

The vulnerability affects the Linux kernel’s amphion media driver. When a VPU core is unregistered, the driver frees the message buffer before canceling the associated message workers. The message FIFO still references this buffer as its backing storage, allowing a worker that is queued to read the buffer after it has been freed. This use‑after‑free can lead to memory corruption, a crash, or local arbitrary code execution with kernel privileges.

Affected Systems

All Linux kernel releases that include the amphion media driver before the patch contain the flaw. The vulnerability is present in any distribution that ships with the unpatched kernel code, as the affected vendor list is simply Linux:Linux. No specific version numbers are available, so all kernels bearing the amphion driver are potentially impacted.

Risk and Exploitability

The flaw is a classic use‑after‑free, which is typically evaluated as a critical severity and can enable local privilege escalation or denial of service. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, but the nature of the flaw suggests it could be exploited by a user with the ability to register or unregister the VPU core. If an attacker can control the timing of vpu_core_unregister, they may trigger the use‑after‑free and gain kernel execution. Therefore the risk remains high until the patch is applied.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to the latest release that contains the amphion driver patch which drains message workers before freeing the buffer.
  • If an immediate kernel update is not feasible, disable the VPU core driver or remove it from modules to prevent the use‑after‑free scenario.
  • As a temporary measure for systems that require the driver, ensure that all message workers are explicitly drained or canceled before unregistering any VPU core instance, following the ordering described in the patch.

Generated by OpenCVE AI on November 30, 2026 at 17:29 UTC.

Tracking

Sign in to view the affected projects.

Exploits

Explore public exploit intelligence with OpenCVE Pro.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: media: amphion: drain message work before releasing core state vpu_core_unregister() frees core->msg_buffer before cancelling the message workers, although core->msg_fifo still uses the buffer as its backing storage. A queued worker can read it after it has been freed. Drain the core and instance message work first, then release core->vpu and the FIFO buffer. This follows the ordering in vpu_core_suspend().
Title media: amphion: drain message work before releasing core state
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

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