Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98782 Overview
CVE-2026-98782 is a resource management flaw in the Linux kernel's MediaTek Direct Rendering Manager (DRM) driver. The mtk_drm_probe() function registers an Overlay (OVL) adaptor platform device via platform_device_register_data() when the display pipeline requires it. If a later initialization step fails, the probe error path releases DRM resources without unregistering the OVL adaptor device. The normal remove path similarly leaves the device registered after the DRM driver unbinds. The result is a platform device leak that persists across probe failures and driver unloads.
Critical Impact
The leak keeps kernel objects allocated after driver unbind, causing resource exhaustion and potential instability on MediaTek display subsystems over repeated probe/remove cycles.
Affected Products
- Linux kernel builds including the MediaTek DRM driver (drivers/gpu/drm/mediatek)
- MediaTek-based platforms using the OVL adaptor display pipeline
- Stable kernel branches referenced by the fix commits 03fb1c6, 048739b, 3d85bd7, 629458b, and 8e3a350
Discovery Timeline
- 2026-10-18 - CVE-2026-98782 published to NVD
- 2026-10-21 - Last updated in NVD database
Technical Details for CVE-2026-98782
Vulnerability Analysis
The issue sits in the probe and remove paths of the MediaTek DRM driver. During mtk_drm_probe(), the driver conditionally creates an OVL adaptor platform device when the display pipeline needs it. The device registration occurs before all subsequent initialization steps complete, which creates an unbalanced lifecycle if any later step fails.
The error path only unwinds DRM resources. It does not call the corresponding platform_device_unregister() on the OVL adaptor. The normal remove() path has the same gap, leaving the OVL adaptor registered after the DRM driver detaches. Each failed probe or driver unload leaks the platform device along with its associated resources.
Although not remotely exploitable, the defect degrades system reliability on affected hardware. Repeated module load/unload cycles or probe retries accumulate orphan platform devices in the kernel's device model. The reporter identified the bug with a static analysis tool and confirmed it through manual review.
Root Cause
The root cause is a resource lifecycle mismatch between the OVL adaptor platform device registration and the probe/remove cleanup logic. The driver does not record registration state and does not release the device in all exit paths, resulting in a memory leak classified under improper resource release.
Attack Vector
Triggering the leak requires local conditions on affected MediaTek hardware. It occurs through probe failures during driver initialization or routine unbinding of the DRM driver. There is no network attack vector and no evidence of exploitation in the wild.
The vulnerability mechanism is described in prose because no verified proof-of-concept code is available. See the upstream commits for the patch content.
Detection Methods for CVE-2026-98782
Indicators of Compromise
- Growth in /sys/bus/platform/devices/ entries corresponding to the MediaTek OVL adaptor after repeated DRM driver load/unload cycles
- Kernel log entries from mtk_drm showing probe failures without matching device unregistration messages
- Increasing kernel slab allocations tied to platform device structures on MediaTek SoC systems
Detection Strategies
- Audit running kernel versions against the fixed stable commits (03fb1c6, 048739b, 3d85bd7, 629458b, 8e3a350) to identify unpatched hosts
- Monitor dmesg output during display driver probe for repeated initialization failures that would trigger the leak path
- Use kmemleak on debug kernels to confirm leaked platform device allocations originating from mtk_drm_probe()
Monitoring Recommendations
- Track kernel package versions across MediaTek-based fleets through configuration management
- Alert on anomalous display subsystem errors in centralized log pipelines
- Baseline platform device counts on long-running MediaTek devices and alert on sustained growth
How to Mitigate CVE-2026-98782
Immediate Actions Required
- Identify systems running MediaTek SoCs with the DRM driver enabled and inventory their kernel versions
- Apply the stable kernel update containing the referenced fix commits as soon as vendor builds are available
- Avoid repeated manual bind/unbind operations on mtk_drm on unpatched systems to limit leak accumulation
Patch Information
The fix tracks whether the OVL adaptor was successfully registered and unregisters it on probe failure. It also recovers the platform device from the stored DDP component device and unregisters it during normal removal. Patches are available in the following upstream commits: Kernel Commit 03fb1c6, Kernel Commit 048739b, Kernel Commit 3d85bd7, Kernel Commit 629458b, and Kernel Commit 8e3a350.
Workarounds
- No upstream workaround is published; apply the stable kernel patches as the primary remediation
- On unpatched systems, reboot after driver failures to reclaim leaked platform device resources
- Restrict administrative access that would allow repeated driver unload operations on affected hardware
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

