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

- Priority: **Routine**
- Reason: Not severe (CVSS 7, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-30 · Modified: 2026-12-01
- Aliases: DEBIAN-CVE-2026-138907, UBUNTU-CVE-2026-138907
- Record: https://cvemate.com/vulnerability/CVE-2026-138907 · JSON: https://cvemate.com/vulnerability/CVE-2026-138907/json

## Description

```text
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.
```

## Signals

- CVSS: 7 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.17%, percentile 6.609%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 172)

- debian linux (Debian): All versions (No fix recorded) \| \< 6.12.118-1 \| \< 7.3.4-1
- debian linux-6.12 (Debian): \< 6.12.118-1~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded)
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-7.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded)

## 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>
- <https://security-tracker.debian.org/tracker/CVE-2026-138907>
- <https://ubuntu.com/security/CVE-2026-138907>
- <https://www.cve.org/CVERecord?id=CVE-2026-138907>

---

Data as of 2026-12-05T03:57:36.652Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
