CVE-2026-138913: media: amphion: drain message work before releasing core state
In the Linux kernel, the following vulnerability has been resolved:
media: amphion: drain message work before releasing core state
vpucoreunregister() frees core->msgbuffer before cancelling the message workers, although core->msgfifo 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 vpucoresuspend().
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Drain the core and instance message work before releasing core->vpu and the FIFO buffer.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel's Amphion media component are affected when core unregistration occurs while message work remains queued.
What condition leads to the use-after-free?
vpu_core_unregister() frees core->msg_buffer while core->msg_fifo still uses it as backing storage, before the message workers are cancelled. A queued worker can then access the freed buffer.
What teardown ordering is needed to prevent the issue?
Core and instance message work must be drained before releasing core->vpu and the FIFO buffer. The corrected ordering follows the approach used by vpu_core_suspend().