CVE-2025-40316
In the Linux kernel, the following vulnerability has been resolved: drm/mediatek: Fix device use-after-free on unbind A recent change fixed device reference leaks when looking up drm platform device driver data during bind() but failed to remove a partial fix which had been added by commit 80805b62ea5b ("drm/mediatek: Fix kobject put for component sub-drivers"). This results in a reference imbalance on component bind() failures and on unbind() which could lead to a user-after-free. Make sure to only drop the references after retrieving the driver data by effectively reverting the previous partial fix. Note that holding a reference to a device does not prevent its driver data from going away so there is no point in keeping the reference.
Affected versions
Linux kernel versions
6.6.105,
6.12.45,
6.16.5,
6.17
and later are affected. Fixed in
6.6.117,
6.12.58,
6.17.8,
6.18
and their respective stable series.
References
The following references provide additional information about CVE-2025-40316 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/0142fe895986addf35885b43440718e567121155
-
PatchKernel patch commithttps://git.kernel.org/stable/c/8ba827e09eb586e952d10e39406fa02d10bb591e
-
PatchKernel patch commithttps://git.kernel.org/stable/c/926d002e6d7e2f1fd5c1b53cf6208153ee7d380d
Frequently asked questions
-
What is CVE-2025-40316?
CVE-2025-40316 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 6.6.105 onward and has been patched in 6.6.117, 6.12.58, 6.17.8 and others. CVE-2025-40316 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
Is there a patch available for CVE-2025-40316?
Yes — CVE-2025-40316 has been patched. Fixed versions include 6.6.117, 6.12.58, 6.17.8 and others. If you are running Linux kernel 6.6.105 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2025-40316 actively exploited?
No — CVE-2025-40316 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.