CVE-2025-39882 drm/mediatek: fix potential OF node use-after-free

High 8.4 Published Updated

A use-after-free vulnerability in the Linux kernel's MediaTek DRM driver allows attackers to potentially execute code or escalate privileges.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-39882?

CVE-2025-39882 is a high-severity use after free vulnerability in Linux kernel, published on 23 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

drm/mediatek: fix potential OF node use-after-free

The for_each_child_of_node() helper drops the reference it takes to each node as it iterates over children and an explicit of_node_put() is only needed when exiting the loop early.

Drop the recently introduced bogus additional reference count decrement at each iteration that could potentially lead to a use-after-free.

Weakness: CWE-416

Which versions are affected by CVE-2025-39882?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-39882?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2025-39882 being exploited?

There is no known exploitation of CVE-2025-39882 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-39882, DEBIAN-CVE-2025-39882, GHSA-wpx2-5m46-33qp, UBUNTU-CVE-2025-39882.

Is CVE-2025-39882 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free