Skip to contentSkip to conversation

CVE-2026-89867: media: chips-media: wave5: Defer job_finish() only when a DEC_PIC was queued

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 16

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

media: chips-media: wave5: Defer job_finish() only when a DEC_PIC was queued

Decoder instances sharing a VPU also share one v4l2_m2m job slot, released when the running context calls v4l2_m2m_job_finish(). While draining, device_run() defers job_finish() once EOS is sent (sent_eos), expecting a later finish_decode() (from a DEC_PIC completion IRQ) to release the slot.

But the m2m core checks job_ready() only when a job is queued, not when it is dispatched. A job queued while draining can run after finish_decode() has already moved the instance to STOP and sent EOS. device_run() then runs in STOP, issues no DEC_PIC, yet still skips job_finish() - so no IRQ, no finish_decode(), and the shared slot is leaked, stalling every instance. With several v4l2h264dec instances in parallel, GStreamer hangs at EOS.

Track whether the run actually queued a DEC_PIC (cmd_issued) and defer job_finish() only then. Otherwise finish the job immediately

The Linux kernel CVE team has assigned CVE-2026-89867 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 7.0 with commit a176ac5e701f1ba30843c0d7e0663a761bf9a61a and fixed in 7.2.5 with commit 63d758d2f9dba836d5ae597d317cde522e817cf9
	Issue introduced in 7.0 with commit a176ac5e701f1ba30843c0d7e0663a761bf9a61a and fixed in 7.3-rc1 with commit b694ba0a5526a69f78a6924982b1553154ccfd73

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-89867

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/media/platform/chips-media/wave5/wave5-vpu-dec.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/63d758d2f9dba836d5ae597d317cde522e817cf9
	https://git.kernel.org/stable/c/b694ba0a5526a69f78a6924982b1553154ccfd73