Menu

Star on GitHub · 3.2k

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 dev…

Published Dec 8, 2025EPSS 0.19%

Overview

CVE-2025-40316 is a known-severity vulnerability. It was published on December 8, 2025.

Technical description

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.

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2025-40316?

CVE-2025-40316 is a known-severity vulnerability. It was published on December 8, 2025.

How severe is CVE-2025-40316?

CVSS score information is not yet available for this vulnerability. Check back as the CVE record is updated by NVD analysts.

How do I fix or remediate CVE-2025-40316?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-40316?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2025-40316 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.