CVE-2021-47046 drm/amd/display: Fix off by one in hdmi_14_process_transaction()

High 7.8 Published Updated

An off-by-one error in the Linux kernel's AMD display driver allows an out-of-bounds read, potentially exposing sensitive memory data.

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

CVE-2021-47046 is a high-severity vulnerability in Linux kernel, published on 28 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/amd/display: Fix off by one in hdmi_14_process_transaction()

The hdcp_i2c_offsets[] array did not have an entry for HDCP_MESSAGE_ID_WRITE_CONTENT_STREAM_TYPE so it led to an off by one read overflow. I added an entry and copied the 0x0 value for the offset from similar code in drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c.

I also declared several of these arrays as having HDCP_MESSAGE_ID_MAX entries. This doesn't change the code, but it's just a belt and suspenders approach to try future proof the code.

Weakness: CWE-193

Which versions are affected by CVE-2021-47046?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2021-47046?

Apply the vendor's patch.

Is CVE-2021-47046 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-47046, GHSA-2v9v-6h75-597v, UBUNTU-CVE-2021-47046.

Is CVE-2021-47046 in your software?

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

Check your SBOMs for free