CVE-2026-64358 PUBLISHED

media: mtk-jpeg: cancel workqueue on release for supported platforms only

Assigner: Linux
Reserved: 19.07.2026 Published: 25.07.2026 Updated: 25.07.2026

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

media: mtk-jpeg: cancel workqueue on release for supported platforms only

Since a recent fix the mtk_jpeg_release function cancels any pending or running work present in the driver workqueue using cancel_work_sync function. Currently, only the multicore based variants use this workqueue and they have the jpeg_worker platform data field initialized with a workqueue callback function. For the others, this field value remain NULL by default. The cancel_work_sync function is unconditionally called in mtk_jpeg_release function, even for the variants that do not use the workqueue. This call generates a WARN_ON print in __flush_work because the workqueue callback function presence check fails in __flush_work function (used by cancel_work_sync).

So, to avoid these warnings, call cancel_work_sync only if a workqueue callback is defined in platform data.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 2209fdae5c2f615930c9af1379c1cfca199ec5d8 to 0fed0fc34ce734b4b8c2f6a467d38bddcb21dda9 (excl.)
  • affected from 0498b27a1542021d90269d58347501d4c3ccd84e to ac0774961a6ea174a71d4ffa39966edafbf7662d (excl.)
  • affected from 26506a30e0e26d612f82a7bf0e395626968a44e6 to 973408ceab14555a8548b97c8cc7b54208c3f251 (excl.)
  • affected from 34c519feef3e4fcff1078dc8bdb25fbbbd10303f to 4c4b4af4a9f278da096f0dbdb6b59594701d29bf (excl.)
  • affected from 34c519feef3e4fcff1078dc8bdb25fbbbd10303f to b1845a227fda37b2fe5327df3ca0015d7e290235 (excl.)
  • Version e78c39f720679fcf3a2eacd82725ec3ea2648301 is affected
  • affected from 6.6.140 to 6.6.145 (excl.)
  • affected from 6.12.86 to 6.12.96 (excl.)
  • affected from 6.18.27 to 6.18.39 (excl.)
  • affected from 7.0.4 to 7.1 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 7.1 is affected
  • unaffected from 0 to 7.1 (excl.)
  • unaffected from 6.6.145 to 6.6.* (incl.)
  • unaffected from 6.12.96 to 6.12.* (incl.)
  • unaffected from 6.18.39 to 6.18.* (incl.)
  • unaffected from 7.1.4 to 7.1.* (incl.)
  • unaffected from 7.2-rc1 to * (incl.)

References