CVE-2026-64358
media: mtk-jpeg: cancel workqueue on release for supported platforms only
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.
INFO
Published Date :
July 25, 2026, 10:17 a.m.
Last Modified :
Aug. 17, 2026, 5:17 a.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Call cancel_work_sync only if a workqueue callback is defined.
- Ensure platform data field is correctly initialized.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-64358.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-64358 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-64358
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-64358 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-64358 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Aug. 17, 2026
Action Type Old Value New Value Changed Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '2209fdae5c2f615930c9af1379c1cfca199ec5d8', 'lessThan': '0fed0fc34ce734b4b8c2f6a467d38bddcb21dda9', 'versionType': 'git'}, {'status': 'affected', 'version': '0498b27a1542021d90269d58347501d4c3ccd84e', 'lessThan': 'ac0774961a6ea174a71d4ffa39966edafbf7662d', 'versionType': 'git'}, {'status': 'affected', 'version': '26506a30e0e26d612f82a7bf0e395626968a44e6', 'lessThan': '973408ceab14555a8548b97c8cc7b54208c3f251', 'versionType': 'git'}, {'status': 'affected', 'version': '34c519feef3e4fcff1078dc8bdb25fbbbd10303f', 'lessThan': '4c4b4af4a9f278da096f0dbdb6b59594701d29bf', 'versionType': 'git'}, {'status': 'affected', 'version': '34c519feef3e4fcff1078dc8bdb25fbbbd10303f', 'lessThan': 'b1845a227fda37b2fe5327df3ca0015d7e290235', 'versionType': 'git'}, {'status': 'affected', 'version': 'e78c39f720679fcf3a2eacd82725ec3ea2648301', 'versionType': 'git'}, {'status': 'affected', 'version': '6.6.140', 'lessThan': '6.6.145', 'versionType': 'semver'}, {'status': 'affected', 'version': '6.12.86', 'lessThan': '6.12.96', 'versionType': 'semver'}, {'status': 'affected', 'version': '6.18.27', 'lessThan': '6.18.39', 'versionType': 'semver'}, {'status': 'affected', 'version': '7.0.4', 'lessThan': '7.1', 'versionType': 'semver'}], 'programFiles': ['drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '7.1'}, {'status': 'unaffected', 'version': '0', 'lessThan': '7.1', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.6.145', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.96', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.39', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.4', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c'], 'defaultStatus': 'affected'}] [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '2209fdae5c2f615930c9af1379c1cfca199ec5d8', 'lessThan': '0fed0fc34ce734b4b8c2f6a467d38bddcb21dda9', 'versionType': 'git'}, {'status': 'affected', 'version': '0498b27a1542021d90269d58347501d4c3ccd84e', 'lessThan': 'ac0774961a6ea174a71d4ffa39966edafbf7662d', 'versionType': 'git'}, {'status': 'affected', 'version': '26506a30e0e26d612f82a7bf0e395626968a44e6', 'lessThan': '973408ceab14555a8548b97c8cc7b54208c3f251', 'versionType': 'git'}, {'status': 'affected', 'version': '34c519feef3e4fcff1078dc8bdb25fbbbd10303f', 'lessThan': '4c4b4af4a9f278da096f0dbdb6b59594701d29bf', 'versionType': 'git'}, {'status': 'affected', 'version': '34c519feef3e4fcff1078dc8bdb25fbbbd10303f', 'lessThan': 'b1845a227fda37b2fe5327df3ca0015d7e290235', 'versionType': 'git'}, {'status': 'affected', 'version': 'e78c39f720679fcf3a2eacd82725ec3ea2648301', 'versionType': 'git'}, {'status': 'affected', 'version': '6.6.140', 'lessThan': '6.6.145', 'versionType': 'semver'}, {'status': 'affected', 'version': '6.12.86', 'lessThan': '6.12.96', 'versionType': 'semver'}, {'status': 'affected', 'version': '6.18.27', 'lessThan': '6.18.39', 'versionType': 'semver'}, {'status': 'affected', 'version': '7.0.4', 'lessThan': '7.1', 'versionType': 'semver'}], 'programFiles': ['drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '7.1'}, {'status': 'unaffected', 'version': '0', 'lessThan': '7.1', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.6.145', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.96', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.39', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.4', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c'], 'defaultStatus': 'affected'}] -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jul. 25, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '2209fdae5c2f615930c9af1379c1cfca199ec5d8', 'lessThan': '0fed0fc34ce734b4b8c2f6a467d38bddcb21dda9', 'versionType': 'git'}, {'status': 'affected', 'version': '0498b27a1542021d90269d58347501d4c3ccd84e', 'lessThan': 'ac0774961a6ea174a71d4ffa39966edafbf7662d', 'versionType': 'git'}, {'status': 'affected', 'version': '26506a30e0e26d612f82a7bf0e395626968a44e6', 'lessThan': '973408ceab14555a8548b97c8cc7b54208c3f251', 'versionType': 'git'}, {'status': 'affected', 'version': '34c519feef3e4fcff1078dc8bdb25fbbbd10303f', 'lessThan': '4c4b4af4a9f278da096f0dbdb6b59594701d29bf', 'versionType': 'git'}, {'status': 'affected', 'version': '34c519feef3e4fcff1078dc8bdb25fbbbd10303f', 'lessThan': 'b1845a227fda37b2fe5327df3ca0015d7e290235', 'versionType': 'git'}, {'status': 'affected', 'version': 'e78c39f720679fcf3a2eacd82725ec3ea2648301', 'versionType': 'git'}, {'status': 'affected', 'version': '6.6.140', 'lessThan': '6.6.145', 'versionType': 'semver'}, {'status': 'affected', 'version': '6.12.86', 'lessThan': '6.12.96', 'versionType': 'semver'}, {'status': 'affected', 'version': '6.18.27', 'lessThan': '6.18.39', 'versionType': 'semver'}, {'status': 'affected', 'version': '7.0.4', 'lessThan': '7.1', 'versionType': 'semver'}], 'programFiles': ['drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '7.1'}, {'status': 'unaffected', 'version': '0', 'lessThan': '7.1', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.6.145', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.96', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.39', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.4', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c'], 'defaultStatus': 'affected'}] 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. Added Reference https://git.kernel.org/stable/c/0fed0fc34ce734b4b8c2f6a467d38bddcb21dda9 Added Reference https://git.kernel.org/stable/c/4c4b4af4a9f278da096f0dbdb6b59594701d29bf Added Reference https://git.kernel.org/stable/c/973408ceab14555a8548b97c8cc7b54208c3f251 Added Reference https://git.kernel.org/stable/c/ac0774961a6ea174a71d4ffa39966edafbf7662d Added Reference https://git.kernel.org/stable/c/b1845a227fda37b2fe5327df3ca0015d7e290235