{"id":"CVE-2026-138907","summary":"media: mediatek: jpeg: Avoid context access after job finish","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: mediatek: jpeg: Avoid context access after job finish\n\nv4l2_m2m_job_finish() publishes job completion and wakes waiters\nbefore it returns. A concurrent file release can therefore finish\nv4l2_m2m_ctx_release() and free the context while the single-core IRQ\nhandler continues with its tail.\n\nBoth handlers only need the device for the matching runtime PM put.\nUse the IRQ-owned jpeg pointer instead of dereferencing ctx after\ncompletion has been published. This preserves the get/put pairing and\nremoves the post-completion context access.","modified":"2026-11-30T15:01:27.059409008Z","published":"2026-11-30T13:26:05.767Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138907.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/38c433a0ec83a133daecbd4f380ec22a219f600a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5da36fa408bb96a3e65dd1b5cc3f10ded3fed126"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7950f166957e1b4fedbe80bb717e69df94ba93bf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7c7f31405b76acd95a628c834ee8a2d6da439782"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7e551afe3a5e9ad4f2b0258bbcdb963b61237070"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a2455ad533b121bf256392c6cd7cf205457a001e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c5453ee719cdb222fab8306f48324eacf34501b4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e0dd33d541a80fb88527d09d910b9f2e7e05c167"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138907.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138907"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"5827e4b14ee7882acc6d618c12ddf4966bbd780f"},{"fixed":"7e551afe3a5e9ad4f2b0258bbcdb963b61237070"},{"fixed":"c5453ee719cdb222fab8306f48324eacf34501b4"},{"fixed":"7950f166957e1b4fedbe80bb717e69df94ba93bf"},{"fixed":"38c433a0ec83a133daecbd4f380ec22a219f600a"},{"fixed":"5da36fa408bb96a3e65dd1b5cc3f10ded3fed126"},{"fixed":"e0dd33d541a80fb88527d09d910b9f2e7e05c167"},{"fixed":"a2455ad533b121bf256392c6cd7cf205457a001e"},{"fixed":"7c7f31405b76acd95a628c834ee8a2d6da439782"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138907.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.10.0"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.118"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.64"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138907.json"}}],"schema_version":"1.9.2"}