# CVE-2026-138907: media: mediatek: jpeg: Avoid context access after job finish

- Severity: High 7.0 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-11-30T13:26:05.767Z
- Modified: 2026-12-01T06:17:30.827Z
- Assigned by: Linux

## Description

In 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 5827e4b14ee7882acc6d618c12ddf4966bbd780f before 7e551afe3a5e9ad4f2b0258bbcdb963b61237070; from 5827e4b14ee7882acc6d618c12ddf4966bbd780f before c5453ee719cdb222fab8306f48324eacf34501b4; from 5827e4b14ee7882acc6d618c12ddf4966bbd780f before 7950f166957e1b4fedbe80bb717e69df94ba93bf; from 5827e4b14ee7882acc6d618c12ddf4966bbd780f before 38c433a0ec83a133daecbd4f380ec22a219f600a; from 5827e4b14ee7882acc6d618c12ddf4966bbd780f before 5da36fa408bb96a3e65dd1b5cc3f10ded3fed126; from 5827e4b14ee7882acc6d618c12ddf4966bbd780f before e0dd33d541a80fb88527d09d910b9f2e7e05c167; from 5827e4b14ee7882acc6d618c12ddf4966bbd780f before a2455ad533b121bf256392c6cd7cf205457a001e; from 5827e4b14ee7882acc6d618c12ddf4966bbd780f before 7c7f31405b76acd95a628c834ee8a2d6da439782; 5.10 (not affected: before 5.10; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.118 up to 6.12.*; from 6.18.64 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/7e551afe3a5e9ad4f2b0258bbcdb963b61237070>
- <https://git.kernel.org/stable/c/c5453ee719cdb222fab8306f48324eacf34501b4>
- <https://git.kernel.org/stable/c/7950f166957e1b4fedbe80bb717e69df94ba93bf>
- <https://git.kernel.org/stable/c/38c433a0ec83a133daecbd4f380ec22a219f600a>
- <https://git.kernel.org/stable/c/5da36fa408bb96a3e65dd1b5cc3f10ded3fed126>
- <https://git.kernel.org/stable/c/e0dd33d541a80fb88527d09d910b9f2e7e05c167>
- <https://git.kernel.org/stable/c/a2455ad533b121bf256392c6cd7cf205457a001e>
- <https://git.kernel.org/stable/c/7c7f31405b76acd95a628c834ee8a2d6da439782>

## Sources

- CVE List: [CVE-2026-138907](https://www.cve.org/CVERecord?id=CVE-2026-138907), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-138907](https://nvd.nist.gov/vuln/detail/CVE-2026-138907), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-138907 · Whole record: https://cve.day/CVE-2026-138907.json · Rebuilt by cve.day 2026-12-01T06:32:14.195Z
