Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local access to mtk-jpeg V4L2 device
-
DeliverySubmit JPEG codec job
-
ExploitRace job completion against file close
-
ExecutionTrigger use-after-free of context
-
ImpactCorrupt kernel memory for escalation or disclosure
Vulnerability Assessment
| Exploitation Conditions | Requires a device running a MediaTek SoC with the mtk-jpeg (V4L2 stateless/stateful JPEG codec) driver loaded, plus local access to the JPEG /dev/videoN node - typically membership in the 'video' group, consistent with PR:L - to submit encode/decode jobs. The specific trigger per the source is a narrow race in the single-core IRQ path: the attacker must win the window between v4l2_m2m_job_finish() publishing completion (which lets a concurrent file release run v4l2_m2m_ctx_release() and free the context) and the IRQ handler's tail dereferencing that now-freed context. Limiting factors that reduce realistic risk: local-only access (AV:L), high attack complexity from the race (AC:H), the need for the MediaTek JPEG hardware and driver to be present and in use, and that the fix targets the single-core IRQ tail specifically; no remote or unauthenticated path exists. |
| Impact | This is a local, race-condition-driven use-after-free in the MediaTek V4L2 JPEG codec driver (mtk-jpeg), and the signals point consistently to a real-but-not-urgent kernel hardening fix rather than a widely-exploited emergency. The provided CVSS 3.1 vector (AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H, base 7.0) correctly reflects the mechanism the description states: v4l2_m2m_job_finish() publishes completion and wakes the file-release path, which can free the context before the single-core IRQ handler finishes dereferencing it - a classic time-sensitive race, which is why AC:H (not AC:L) is appropriate and should not be read as remote or trivially triggerable. EPSS is low (0.17%, 7th percentile) and the CVE is NOT in CISA KEV, so there is no evidence of active exploitation; the vuln.today Decision label is 'this_week', i.e. patch on a normal prioritized cycle, not act_now/emergency. The local vector plus high attack complexity plus low EPSS collectively indicate a low real-world exploitation likelihood, though the full C:H/I:H/A:H kernel memory-corruption impact keeps it above routine. One cross-source tension to note: the input Tags label this 'Information Disclosure', but the mechanism (UAF with full confidentiality, integrity and availability impact) is kernel memory corruption with privilege-escalation and crash potential, which is broader than pure information disclosure - treat the CVSS impact, not the tag, as authoritative. |
| Exploit ScenarioDerived | A local user (or compromised low-privileged process with access to the MediaTek JPEG V4L2 device) on a MediaTek-SoC device submits JPEG codec jobs and repeatedly closes the device file at the moment a job completes, racing the IRQ handler's tail against context teardown. If the attacker wins the race, the freed context is accessed after free, enabling kernel memory corruption that can lead to privilege escalation, information disclosure, or a crash. No public exploit code or PoC reference is provided, and the high attack complexity (winning the race) makes reliable exploitation difficult. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
A use-after-free race in the MediaTek JPEG codec V4L2 driver (mtk-jpeg) allows a local user with access to the JPEG /dev/videoN device node to potentially corrupt or disclose kernel memory. The IRQ handler's tail dereferences the m2m context after v4l2_m2m_job_finish() has published completion, so a concurrent file release can free that context first; the fix switches to the IRQ-owned jpeg pointer. Exploitation requires a MediaTek SoC with the driver loaded and a race-winning local job submission (AV:L, AC:H, PR:L); no public exploit code or CISA KEV entry is associated, and EPSS is low at 0.17% (7th percentile).
RemediationAI
Vendor-released patch: apply the upstream stable fixes for your branch - 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.118, 6.18.64, 7.3.4 (or 7.4-rc1 and later) - using the corresponding git.kernel.org/stable commits listed in the references, or take the distribution kernel update that carries them. Because the defect is a race between job completion and file release within the driver, no configuration toggle removes it; the practical interim control is to restrict access to the mtk-jpeg /dev/videoN nodes (for example remove untrusted users from the 'video' group or apply a device cgroup/udev ACL), which reduces exposure to PR:L-style local attackers at the cost of disabling JPEG codec use for those users, and to avoid concurrent submit-and-close workloads on the device until patched. Refer to https://nvd.nist.gov/vuln/detail/CVE-2026-138907 for the consolidated advisory linkage; no public exploit code was identified at time of analysis.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The mtk-jpeg driver is a V4L2 memory-to-memory (m2m) JPEG encode/decode driver used on MediaTek SoCs, built on the v4l2_m2m job queueing framework. v4l2_m2m_job_finish() both publishes job completion and wakes waiters before it returns, meaning a userspace thread blocked in release() can proceed into v4l2_m2m_ctx_release() and free the m2m context concurrently with the still-running single-core IRQ handler tail. The affected code dereferenced ctx after completion had been published; the upstream fix replaces that dereference with the IRQ-owned jpeg pointer, which is sufficient for the matching runtime PM put and preserves the get/put pairing while eliminating post-completion context access. The flaw is a classic concurrent free/reference race (use-after-free class) whose exact trigger is a narrow timing window rather than a deterministic code path; no CWE identifier was supplied in the source data.
Know when Mediatek gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Local V4L2 device access (AV:L) with low privilege via the video device node (PR:L); the described job-finish/file-release race justifies AC:H; a kernel UAF yields full C/I/A impact.
Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).
CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Lifecycle Timeline
4DescriptionCVE.org
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.
Executive ViewAI
A high-severity local vulnerability in the MediaTek JPEG codec driver (mtk-jpeg) enables a user with device access to potentially corrupt or disclose kernel memory through a race condition. This affects MediaTek-based devices, and while exploitation requires local access and winning a race, the low EPSS score suggests limited immediate risk. Leadership should monitor for patch deployment but no widespread exploitation is expected.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
In wlan service, there is a possible out of bounds write due to improper input validation. Rated critical severity (CVSS
In the ioctl handlers of the Mediatek Command Queue driver, there is a possible out of bounds write due to insufficient
WiMAX routers based on the MediaTek SDK (libmtk) that use a custom httpd plugin are vulnerable to an authentication bypa
The MediaTek Embedded Multimedia Card (eMMC) subsystem for Android on MT65xx, MT66xx, and MT8163 SoC devices allows atta
The MT6573FDVT_SetRegHW function in camera_fdvt.c in the MediaTek driver for Linux allows local users to gain privileges
In Modem IMS Stack, there is a possible out of bounds write due to a missing bounds check. Rated critical severity (CVSS
In wlan service, there is a possible out of bounds write due to an incorrect bounds check. Rated critical severity (CVSS
In wlan AP FW, there is a possible out of bounds write due to improper input validation. Rated critical severity (CVSS 9
Heap OOB write in Android Bluetooth driver via incorrect bounds check.
Remote privilege escalation in Android WLAN AP driver via packet injection.
In wlan AP driver, there is a possible out of bounds write due to an incorrect bounds check. This could lead to local es
In wlan AP driver, there is a possible out of bounds write due to an incorrect bounds check. This could lead to local es
EUVD-2026-138610
GHSA-c9m7-2gv3-fg33
NVD
CVE.org
EPSS
Exploit-DB