CVE-2026-139066: media: imx-jpeg: finish the job on device_run() error paths

Published Nov 30, 2026
·
Updated

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

media: imx-jpeg: finish the job on devicerun() error paths

mxcjpegdevicerun() returns early through a shared "end" label on several error paths (no free slot, mxcjpegallocslotdata() failure, or missing buffers or queue data), and none of them calls v4l2m2mjobfinish(). Since the delayed work is queued only after the hardware is started, those paths neither finish the job directly nor queue timeout work that could finish it later. The job is left with TRANSRUNNING set, so the waitevent() in v4l2m2mcanceljob() (reached from v4l2m2mctxrelease() at close) waits indefinitely and the close hangs.

mxcjpegallocslotdata() uses dmaalloccoherent(), so the failure path is reachable under memory pressure.

Return the src/dst buffers with VB2BUFSTATEERROR and call v4l2m2mjobfinish() on those paths: paths that have buffers use a "buffinish" label; the no-buffer path uses "jobfinish" directly. This mirrors the existing jpegparseerror path.

This bug was found by static analysis.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In mxc_jpeg_device_run() error paths, return available source/destination buffers with VB2_BUF_STATE_ERROR and call v4l2_m2m_job_finish(); on the no-buffer path, call v4l2_m2m_job_finish() directly.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:27 PM
Data Sourced
via MITRE·01:27 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203