7.8high
drm/amd/display: Fix off by one in hdmi_14_process_transaction()
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.24% (higher than 16% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 4c283fdac08abf3211533f70623c90a34f41d08d before 403c4528e5887af3deb9838cb77a557631d1e138, from 4c283fdac08abf3211533f70623c90a34f41d08d before 6a58310d5d1e5b02d0fc9b393ba540c9367bced5, from 4c283fdac08abf3211533f70623c90a34f41d08d before 080bd41d6478a64edf96704fddcda52b1fd5fed7, from 4c283fdac08abf3211533f70623c90a34f41d08d before 8e6fafd5a22e7a2eb216f5510db7aab54cc545c1, 5.5 Not affected: before 5.5, from 5.10.37 up to 5.10.*, from 5.11.21 up to 5.11.*, from 5.12.4 up to 5.12.*, from 5.13 up to * | CVE List |
| linux linux_kernel | from 5.5 before 5.10.37, from 5.11 before 5.11.21, from 5.12 before 5.12.4 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: drm/amd/display: corrección por uno en hdmi_14_process_transaction() La matriz hdcp_i2c_offsets[] no tenía una entrada para HDCP_MESSAGE_ID_WRITE_CONTENT_STREAM_TYPE, por lo que provocó un desbordamiento de lectura desactivado por uno. Agregué una entrada y copié el valor 0x0 para el desplazamiento de un código similar en drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c. También declaré que varias de estas matrices tenían entradas HDCP_MESSAGE_ID_MAX. Esto no cambia el código, pero es solo un enfoque de cinturón y tirantes para probar el código a prueba de futuro.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-47046 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2021-47046 changed 2026-06-17 | Public domain |