CVE-2026-138907

Source
https://cve.org/CVERecord?id=CVE-2026-138907
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138907.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-138907
Downstream
Published
2026-11-30T13:26:05Z
Modified
2026-11-30T15:01:27Z
Summary
media: mediatek: jpeg: Avoid context access after job finish
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138907.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

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"

Linux / Kernel

Package

Name
Kernel

Affected 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"