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-98781 Overview
CVE-2026-98781 is a reference count leak in the Linux kernel's MediaTek Direct Rendering Manager (DRM) driver. The flaw resides in the mtk_drm_bind() function within drm/mediatek. When the bound device is not the mmsys master, the function takes a reference on the disp-mutex device through of_find_device_by_node() and then returns early without releasing it. The corresponding mtk_drm_unbind() only releases mutex_dev for the master path, so the reference acquired on non-master paths persists for the lifetime of the system.
Critical Impact
Repeated bind operations on non-master MediaTek display devices leak platform device references, preventing proper driver unload and causing resource exhaustion over time.
Affected Products
- Linux kernel versions containing the vulnerable mtk_drm_bind() logic in the MediaTek DRM driver
- Systems using MediaTek SoC display subsystems with multi-mmsys topologies
- Distributions shipping affected drm/mediatek driver code prior to the fix commits
Discovery Timeline
- 2026-10-18 - CVE-2026-98781 published to the National Vulnerability Database (NVD)
- 2026-10-21 - Last updated in NVD database
Technical Details for CVE-2026-98781
Vulnerability Analysis
The defect is a memory leak classified under improper resource release. In drm/mediatek, mtk_drm_bind() resolves the disp-mutex device node and increments its platform device reference via of_find_device_by_node(). On the master code path, the matching mtk_drm_unbind() later releases that reference. On the non-master code path, mtk_drm_bind() returns early after acquiring the reference, and mtk_drm_unbind() never calls put_device() on it.
Each bind of a non-master MediaTek DRM component therefore pins the disp-mutex platform device. The leak prevents module unload, blocks clean device teardown, and gradually consumes kernel object slab memory on systems that repeatedly rebind the driver.
Root Cause
The root cause is an asymmetric reference lifecycle between mtk_drm_bind() and mtk_drm_unbind(). The bind function unconditionally takes a reference on mutex_dev, but the unbind function releases it only when the current device is the mmsys master. The fix drops the reference before the early return on the non-master path, restoring symmetry.
Attack Vector
This issue requires local kernel-level driver activity on MediaTek hardware and is not reachable over the network. The impact is limited to resource exhaustion and interference with driver reload scenarios, with no direct code execution or privilege escalation primitive described in the upstream commit. The vulnerability manifests through normal driver bind and unbind cycles on affected platforms. See the upstream fix in Linux Kernel Commit cb3e024 for the authoritative patch details.
Detection Methods for CVE-2026-98781
Indicators of Compromise
- Growing reference counts on MediaTek disp-mutex platform devices across bind and unbind cycles
- Failure to fully unload the mediatek-drm module after device removal
- Persistent platform_device kobjects referencing disp-mutex nodes in /sys/devices/
Detection Strategies
- Audit running kernels against the fix commits listed in the NVD references to confirm the patch is applied
- Use kernel object tracking tools such as kmemleak and drgn scripts to observe retained disp-mutex device references after driver unbind
- Monitor dmesg for repeated bind and unbind sequences on MediaTek display components without corresponding resource release
Monitoring Recommendations
- Track kernel package versions through configuration management to detect systems still running vulnerable drm/mediatek code
- Baseline platform device reference counts on MediaTek SoC fleets and alert on unbounded growth
- Correlate module reload failures on MediaTek display stacks with the CVE identifier during triage
How to Mitigate CVE-2026-98781
Immediate Actions Required
- Update to a kernel release that includes the upstream fixes referenced in NVD, including Linux Kernel Commit 3753e34 and Linux Kernel Commit cb3e024
- Inventory MediaTek-based Linux systems and prioritize those that frequently rebind display drivers
- Apply vendor-supplied kernel updates from your Linux distribution once available
Patch Information
The fix drops the extra reference on the non-master path in mtk_drm_bind() before returning. Backports have been issued across multiple stable branches. Refer to the following upstream commits for the authoritative patches: Linux Kernel Commit 3753e34, Linux Kernel Commit 4a0ae61, Linux Kernel Commit 4a8f9ca, Linux Kernel Commit b84f138, and Linux Kernel Commit cb3e024.
Workarounds
- No functional workaround exists; apply the upstream kernel fix
- Avoid repeated unbind and rebind cycles on MediaTek DRM components on unpatched systems to slow reference accumulation
- Reboot affected systems to reclaim leaked references as a temporary mitigation until patching is complete
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

