media: mediatek: jpeg: Avoid context access after job finish
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
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.
| Product | Versions |
|---|---|
| Linux Linux | 5827e4b14ee7882acc6d618c12ddf4966bbd780f to before 7e551afe3a5e9ad4f2b0258bbcdb963b61237070 Affected5827e4b14ee7882acc6d618c12ddf4966bbd780f to before c5453ee719cdb222fab8306f48324eacf34501b4 Affected5827e4b14ee7882acc6d618c12ddf4966bbd780f to before 7950f166957e1b4fedbe80bb717e69df94ba93bf Affected5827e4b14ee7882acc6d618c12ddf4966bbd780f to before 38c433a0ec83a133daecbd4f380ec22a219f600a Affected5827e4b14ee7882acc6d618c12ddf4966bbd780f to before 5da36fa408bb96a3e65dd1b5cc3f10ded3fed126 Affected5827e4b14ee7882acc6d618c12ddf4966bbd780f to before e0dd33d541a80fb88527d09d910b9f2e7e05c167 Affected5827e4b14ee7882acc6d618c12ddf4966bbd780f to before a2455ad533b121bf256392c6cd7cf205457a001e Affected5827e4b14ee7882acc6d618c12ddf4966bbd780f to before 7c7f31405b76acd95a628c834ee8a2d6da439782 Affected |
| Linux Linux | 5.10 Affectedbefore 5.10 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.118 through 6.12.* Not Affected6.18.64 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
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
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.