CVE-2021-47063 drm: bridge/panel: Cleanup connector on bridge detach

High 7.8 Published Updated

A use-after-free vulnerability in the Linux kernel DRM bridge/panel subsystem allows attackers to cause denial of service or execute arbitrary code.

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

What is CVE-2021-47063?

CVE-2021-47063 is a high-severity use after free vulnerability in Linux kernel, published on 29 Feb 2024. 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: bridge/panel: Cleanup connector on bridge detach

If we don't call drm_connector_cleanup() manually in panel_bridge_detach(), the connector will be cleaned up with the other DRM objects in the call to drm_mode_config_cleanup(). However, since our drm_connector is devm-allocated, by the time drm_mode_config_cleanup() will be called, our connector will be long gone. Therefore, the connector must be cleaned up when the bridge is detached to avoid use-after-free conditions.

v2: Cleanup connector only if it was created

v3: Add FIXME

v4: (Use connector->dev) directly in if() block

Weakness: CWE-416

Which versions are affected by CVE-2021-47063?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2021-47063?

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-2021-47063 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-47063, GHSA-g6q3-47r5-q8fc, UBUNTU-CVE-2021-47063.

Is CVE-2021-47063 in your software?

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

Check your SBOMs for free