{"id":"CVE-2026-64358","state":"PUBLISHED","title":"media: mtk-jpeg: cancel workqueue on release for supported platforms only","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: mtk-jpeg: cancel workqueue on release for supported platforms only\n\nSince a recent fix the mtk_jpeg_release function cancels any pending\nor running work present in the driver workqueue using\ncancel_work_sync function.\nCurrently, only the multicore based variants use this workqueue and they\nhave the jpeg_worker platform data field initialized with a workqueue\ncallback function. For the others, this field value remain NULL by\ndefault.\nThe cancel_work_sync function is unconditionally called in\nmtk_jpeg_release function, even for the variants that do not use the\nworkqueue. This call generates a WARN_ON print in __flush_work because\nthe workqueue callback function presence check fails in __flush_work\nfunction (used by cancel_work_sync).\n\nSo, to avoid these warnings, call cancel_work_sync only if a workqueue\ncallback is defined in platform data.","publishedAt":"2026-07-25T08:50:15.303Z","updatedAt":"2026-08-17T04:54:04.458Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2209fdae5c2f615930c9af1379c1cfca199ec5d8","status":"affected","lessThan":"0fed0fc34ce734b4b8c2f6a467d38bddcb21dda9","versionType":"git"},{"version":"0498b27a1542021d90269d58347501d4c3ccd84e","status":"affected","lessThan":"ac0774961a6ea174a71d4ffa39966edafbf7662d","versionType":"git"},{"version":"26506a30e0e26d612f82a7bf0e395626968a44e6","status":"affected","lessThan":"973408ceab14555a8548b97c8cc7b54208c3f251","versionType":"git"},{"version":"34c519feef3e4fcff1078dc8bdb25fbbbd10303f","status":"affected","lessThan":"4c4b4af4a9f278da096f0dbdb6b59594701d29bf","versionType":"git"},{"version":"34c519feef3e4fcff1078dc8bdb25fbbbd10303f","status":"affected","lessThan":"b1845a227fda37b2fe5327df3ca0015d7e290235","versionType":"git"},{"version":"e78c39f720679fcf3a2eacd82725ec3ea2648301","status":"affected","versionType":"git"},{"version":"6.6.140","status":"affected","lessThan":"6.6.145","versionType":"semver"},{"version":"6.12.86","status":"affected","lessThan":"6.12.96","versionType":"semver"},{"version":"6.18.27","status":"affected","lessThan":"6.18.39","versionType":"semver"},{"version":"7.0.4","status":"affected","lessThan":"7.1","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.1","versionType":"semver"},{"version":"6.6.145","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.96","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.39","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.4","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c"]}],"references":["https://git.kernel.org/stable/c/0fed0fc34ce734b4b8c2f6a467d38bddcb21dda9","https://git.kernel.org/stable/c/ac0774961a6ea174a71d4ffa39966edafbf7662d","https://git.kernel.org/stable/c/973408ceab14555a8548b97c8cc7b54208c3f251","https://git.kernel.org/stable/c/4c4b4af4a9f278da096f0dbdb6b59594701d29bf","https://git.kernel.org/stable/c/b1845a227fda37b2fe5327df3ca0015d7e290235"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:41.951Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/64xxx/CVE-2026-64358.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-64358","state":"PUBLISHED","datePublished":"2026-07-25T08:50:15.303Z","dateUpdated":"2026-08-17T04:54:04.458Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-07-19T15:36:31.782Z"},"containers":{"cna":{"title":"media: mtk-jpeg: cancel workqueue on release for supported platforms only","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: mtk-jpeg: cancel workqueue on release for supported platforms only\n\nSince a recent fix the mtk_jpeg_release function cancels any pending\nor running work present in the driver workqueue using\ncancel_work_sync function.\nCurrently, only the multicore based variants use this workqueue and they\nhave the jpeg_worker platform data field initialized with a workqueue\ncallback function. For the others, this field value remain NULL by\ndefault.\nThe cancel_work_sync function is unconditionally called in\nmtk_jpeg_release function, even for the variants that do not use the\nworkqueue. This call generates a WARN_ON print in __flush_work because\nthe workqueue callback function presence check fails in __flush_work\nfunction (used by cancel_work_sync).\n\nSo, to avoid these warnings, call cancel_work_sync only if a workqueue\ncallback is defined in platform data."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2209fdae5c2f615930c9af1379c1cfca199ec5d8","status":"affected","lessThan":"0fed0fc34ce734b4b8c2f6a467d38bddcb21dda9","versionType":"git"},{"version":"0498b27a1542021d90269d58347501d4c3ccd84e","status":"affected","lessThan":"ac0774961a6ea174a71d4ffa39966edafbf7662d","versionType":"git"},{"version":"26506a30e0e26d612f82a7bf0e395626968a44e6","status":"affected","lessThan":"973408ceab14555a8548b97c8cc7b54208c3f251","versionType":"git"},{"version":"34c519feef3e4fcff1078dc8bdb25fbbbd10303f","status":"affected","lessThan":"4c4b4af4a9f278da096f0dbdb6b59594701d29bf","versionType":"git"},{"version":"34c519feef3e4fcff1078dc8bdb25fbbbd10303f","status":"affected","lessThan":"b1845a227fda37b2fe5327df3ca0015d7e290235","versionType":"git"},{"version":"e78c39f720679fcf3a2eacd82725ec3ea2648301","status":"affected","versionType":"git"},{"version":"6.6.140","status":"affected","lessThan":"6.6.145","versionType":"semver"},{"version":"6.12.86","status":"affected","lessThan":"6.12.96","versionType":"semver"},{"version":"6.18.27","status":"affected","lessThan":"6.18.39","versionType":"semver"},{"version":"7.0.4","status":"affected","lessThan":"7.1","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.1","versionType":"semver"},{"version":"6.6.145","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.96","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.39","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.4","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/0fed0fc34ce734b4b8c2f6a467d38bddcb21dda9"},{"url":"https://git.kernel.org/stable/c/ac0774961a6ea174a71d4ffa39966edafbf7662d"},{"url":"https://git.kernel.org/stable/c/973408ceab14555a8548b97c8cc7b54208c3f251"},{"url":"https://git.kernel.org/stable/c/4c4b4af4a9f278da096f0dbdb6b59594701d29bf"},{"url":"https://git.kernel.org/stable/c/b1845a227fda37b2fe5327df3ca0015d7e290235"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-17T04:54:04.458Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.140","versionEndExcluding":"6.6.145"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12.86","versionEndExcluding":"6.12.96"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18.27","versionEndExcluding":"6.18.39"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.1","versionEndExcluding":"7.1.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.1","versionEndExcluding":"7.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0.4"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}