Description
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.
Published: 2026-07-25
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The mtk_jpeg_release function in the Linux kernel driver invokes cancel_work_sync unconditionally, even for variants of the driver that do not use a workqueue. When the workqueue callback pointer is NULL, cancel_work_sync calls __flush_work, which triggers a WARN_ON in __flush_work. This results in a kernel warning for any release of the driver that lacks a workqueue callback.

Affected Systems

This issue affects the Linux kernel’s media subsystem, specifically the mtk-jpeg driver on multicore-based platforms that employ a workqueue. The warning is triggered even on platforms that do not use the workqueue, as the function call is unconditional. No specific kernel version or configuration is listed, so any kernel with the affected driver implementation may be impacted.

Risk and Exploitability

The EPSS score is below 1% and the vulnerability is not listed in the CISA KEV catalog, indicating a low likelihood of exploitation. Because the flaw leads only to a kernel warning rather than a controllable attack vector, the security impact is minimal. The risk is predominantly operational rather than known attack path exists beyond the unconditional call made during driver release.

Generated by OpenCVE AI on August 3, 2026 at 19:04 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to a release that includes the patch fixing the mtk_jpeg_release workqueue cancellation logic.
  • If you cannot update, modify the driver to conditionally cancel the workqueue only if a workqueue callback is defined, preventing the WARN_ON.
  • Monitor kernel logs for repeated WARN_ON messages related to __flush_work to ensure the issue has been resolved.

Generated by OpenCVE AI on August 3, 2026 at 19:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4724-1 linux-6.12 new package
History

Sun, 02 Aug 2026 13:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-674

Thu, 30 Jul 2026 12:15:00 +0000


Mon, 27 Jul 2026 06:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476
CWE-674

Sat, 25 Jul 2026 09:30:00 +0000

Type Values Removed Values Added
Description 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.
Title media: mtk-jpeg: cancel workqueue on release for supported platforms only
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-07-25T08:50:15.303Z

Reserved: 2026-07-19T15:36:31.782Z

Link: CVE-2026-64358

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-25T10:17:18.253

Modified: 2026-08-11T15:01:50.637

Link: CVE-2026-64358

cve-icon Redhat

Severity :

Publid Date: 2026-07-25T00:00:00Z

Links: CVE-2026-64358 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T19:15:04Z

Weaknesses