CVE-2026-138907
media: mediatek: jpeg: Avoid context access after job finish
Check your servers for CVE-2026-138907
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-138907 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.65% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 5827e4b14ee7882acc6d618c12ddf4966bbd780f, before 7e551afe3a5e9ad4f2b0258bbcdb963b61237070 affected from 5827e4b14ee7882acc6d618c12ddf4966bbd780f, before c5453ee719cdb222fab8306f48324eacf34501b4 affected from 5827e4b14ee7882acc6d618c12ddf4966bbd780f, before 7950f166957e1b4fedbe80bb717e69df94ba93bf affected from 5827e4b14ee7882acc6d618c12ddf4966bbd780f, before 38c433a0ec83a133daecbd4f380ec22a219f600a affected from 5827e4b14ee7882acc6d618c12ddf4966bbd780f, before 5da36fa408bb96a3e65dd1b5cc3f10ded3fed126 affected from 5827e4b14ee7882acc6d618c12ddf4966bbd780f, before e0dd33d541a80fb88527d09d910b9f2e7e05c167 affected from 5827e4b14ee7882acc6d618c12ddf4966bbd780f, before a2455ad533b121bf256392c6cd7cf205457a001e affected from 5827e4b14ee7882acc6d618c12ddf4966bbd780f, before 7c7f31405b76acd95a628c834ee8a2d6da439782
Other versions: unaffected
|
| Linux |
affected 5.10 unaffected before 5.10 unaffected from 5.10.275 up to and including 5.10.* unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.118 up to and including 6.12.* unaffected from 6.18.64 up to and including 6.18.* unaffected from 7.3.4 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-138907 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-138907
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-138907
trivy image --scanners vuln IMAGE | grep CVE-2026-138907
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/7e551afe3a5e9ad4f2b0258bbcdb963b61237070 git.kernel.org
- https://git.kernel.org/stable/c/c5453ee719cdb222fab8306f48324eacf34501b4 git.kernel.org
- https://git.kernel.org/stable/c/7950f166957e1b4fedbe80bb717e69df94ba93bf git.kernel.org
- https://git.kernel.org/stable/c/38c433a0ec83a133daecbd4f380ec22a219f600a git.kernel.org
- https://git.kernel.org/stable/c/5da36fa408bb96a3e65dd1b5cc3f10ded3fed126 git.kernel.org
- https://git.kernel.org/stable/c/e0dd33d541a80fb88527d09d910b9f2e7e05c167 git.kernel.org
- https://git.kernel.org/stable/c/a2455ad533b121bf256392c6cd7cf205457a001e git.kernel.org
- https://git.kernel.org/stable/c/7c7f31405b76acd95a628c834ee8a2d6da439782 git.kernel.org
Source: the record CVE-2026-138907 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse