CVE-2021-47444 drm/edid: In connector_bad_edid() cap num_of_ext by num_blocks read

Medium 5.5 Published Updated

A missing bounds check in the Linux kernel EDID handling allows a local attacker to cause a denial of service via a malformed EDID.

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-47444?

CVE-2021-47444 is a medium-severity vulnerability in Linux kernel, published on 22 May 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/edid: In connector_bad_edid() cap num_of_ext by num_blocks read

In commit e11f5bd8228f ("drm: Add support for DP 1.4 Compliance edid corruption test") the function connector_bad_edid() started assuming that the memory for the EDID passed to it was big enough to hold `edid[0x7e] + 1` blocks of data (1 extra for the base block). It completely ignored the fact that the function was passed `num_blocks` which indicated how much memory had been allocated for the EDID.

Let's fix this by adding a bounds check.

This is important for handling the case where there's an error in the first block of the EDID. In that case we will call connector_bad_edid() without having re-allocated memory based on `edid[0x7e]`.

Which versions are affected by CVE-2021-47444?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2021-47444?

Apply the vendor's patch.

Is CVE-2021-47444 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-47444, GHSA-969w-fmcp-j8rq, UBUNTU-CVE-2021-47444.

Is CVE-2021-47444 in your software?

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

Check your SBOMs for free