{"id":"CVE-2026-138907","aliases":["CVE-2026-138907"],"related":[],"kind":"vulnerability","state":"published","title":"media: mediatek: jpeg: Avoid context access after job finish","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:26:05.767Z","modified":"2026-12-01T06:17:30.827Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"5827e4b14ee7882acc6d618c12ddf4966bbd780f","fixed":"7e551afe3a5e9ad4f2b0258bbcdb963b61237070","status":"affected"},{"type":"git","introduced":"5827e4b14ee7882acc6d618c12ddf4966bbd780f","fixed":"c5453ee719cdb222fab8306f48324eacf34501b4","status":"affected"},{"type":"git","introduced":"5827e4b14ee7882acc6d618c12ddf4966bbd780f","fixed":"7950f166957e1b4fedbe80bb717e69df94ba93bf","status":"affected"},{"type":"git","introduced":"5827e4b14ee7882acc6d618c12ddf4966bbd780f","fixed":"38c433a0ec83a133daecbd4f380ec22a219f600a","status":"affected"},{"type":"git","introduced":"5827e4b14ee7882acc6d618c12ddf4966bbd780f","fixed":"5da36fa408bb96a3e65dd1b5cc3f10ded3fed126","status":"affected"},{"type":"git","introduced":"5827e4b14ee7882acc6d618c12ddf4966bbd780f","fixed":"e0dd33d541a80fb88527d09d910b9f2e7e05c167","status":"affected"},{"type":"git","introduced":"5827e4b14ee7882acc6d618c12ddf4966bbd780f","fixed":"a2455ad533b121bf256392c6cd7cf205457a001e","status":"affected"},{"type":"git","introduced":"5827e4b14ee7882acc6d618c12ddf4966bbd780f","fixed":"7c7f31405b76acd95a628c834ee8a2d6da439782","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.10","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.118","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.64","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/7e551afe3a5e9ad4f2b0258bbcdb963b61237070","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c5453ee719cdb222fab8306f48324eacf34501b4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7950f166957e1b4fedbe80bb717e69df94ba93bf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/38c433a0ec83a133daecbd4f380ec22a219f600a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5da36fa408bb96a3e65dd1b5cc3f10ded3fed126","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e0dd33d541a80fb88527d09d910b9f2e7e05c167","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a2455ad533b121bf256392c6cd7cf205457a001e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7c7f31405b76acd95a628c834ee8a2d6da439782","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138907","url":"https://www.cve.org/CVERecord?id=CVE-2026-138907","licence":"CVE Terms of Use","modified":"2026-12-01T05:40:38.072Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138907","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138907","licence":"Public domain","modified":"2026-12-01T06:17:30.827Z"}],"updatedAt":"2026-12-01T06:32:14.195Z","epss":{"score":0.0017,"percentile":0.06652,"date":"2026-12-01T12:00:22.000Z"}}