media: mediatek: jpeg: Avoid context access after job finish

Summary

CVECVE-2026-138907
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:17:49 UTC
Updated2026-11-30 14:17:49 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: media: mediatek: jpeg: Avoid context access after job finish v4l2_m2m_job_finish() publishes job completion and wakes waiters before it returns. A concurrent file release can therefore finish v4l2_m2m_ctx_release() and free the context while the single-core IRQ handler continues with its tail. Both handlers only need the device for the matching runtime PM put. Use the IRQ-owned jpeg pointer instead of dereferencing ctx after completion has been published. This preserves the get/put pairing and removes the post-completion context access.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 5827e4b14ee7882acc6d618c12ddf4966bbd780f 7e551afe3a5e9ad4f2b0258bbcdb963b61237070 git Not specified
CNA Linux Linux affected 5827e4b14ee7882acc6d618c12ddf4966bbd780f c5453ee719cdb222fab8306f48324eacf34501b4 git Not specified
CNA Linux Linux affected 5827e4b14ee7882acc6d618c12ddf4966bbd780f 7950f166957e1b4fedbe80bb717e69df94ba93bf git Not specified
CNA Linux Linux affected 5827e4b14ee7882acc6d618c12ddf4966bbd780f 38c433a0ec83a133daecbd4f380ec22a219f600a git Not specified
CNA Linux Linux affected 5827e4b14ee7882acc6d618c12ddf4966bbd780f 5da36fa408bb96a3e65dd1b5cc3f10ded3fed126 git Not specified
CNA Linux Linux affected 5827e4b14ee7882acc6d618c12ddf4966bbd780f e0dd33d541a80fb88527d09d910b9f2e7e05c167 git Not specified
CNA Linux Linux affected 5827e4b14ee7882acc6d618c12ddf4966bbd780f a2455ad533b121bf256392c6cd7cf205457a001e git Not specified
CNA Linux Linux affected 5827e4b14ee7882acc6d618c12ddf4966bbd780f 7c7f31405b76acd95a628c834ee8a2d6da439782 git Not specified
CNA Linux Linux affected 5.10 Not specified
CNA Linux Linux unaffected 5.10 semver Not specified
CNA Linux Linux unaffected 5.10.275 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.118 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.64 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.4 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/e0dd33d541a80fb88527d09d910b9f2e7e05c167 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/7950f166957e1b4fedbe80bb717e69df94ba93bf 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/7c7f31405b76acd95a628c834ee8a2d6da439782 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/a2455ad533b121bf256392c6cd7cf205457a001e 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/c5453ee719cdb222fab8306f48324eacf34501b4 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/7e551afe3a5e9ad4f2b0258bbcdb963b61237070 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/38c433a0ec83a133daecbd4f380ec22a219f600a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/5da36fa408bb96a3e65dd1b5cc3f10ded3fed126 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report