drm/amd/display: Clamp HDMI HDCP2 rx_id_list read to buffer size
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ eff682f83c9c2030761e7536c5d97e1b20f71c15 · < 1906064d50d194a145486e5caf3db3e708b6f6ef| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Clamp HDMI HDCP2 rx_id_list read to buffer size
[Why & How] During HDCP 2.x repeater authentication over HDMI, the driver reads the sink's RxStatus register and extracts a 10-bit message size field (max value 1023). This value is used as the read length for the ReceiverID list without being clamped to the size of the destination buffer rx_id_list[177]. A malicious HDMI repeater could advertise a message size larger than the buffer, causing an out-of-bounds write during the I2C read.
Clamp the read length in mod_hdcp_read_rx_id_list() to the size of the rx_id_list buffer, matching the approach already used in the DP branch.
(cherry picked from commit 229212219e4247d9486f8ba41ef087358490be09)
From the CVE record · Linux
The AMD display driver in the Linux kernel reads an HDMI HDCP 2.x repeater's ReceiverID list without limiting the read to its 177-byte buffer. During repeater authentication, a malicious HDMI repeater can advertise a larger message size and cause an out-of-bounds write.
Engineers running Linux kernels with AMD display support should check their exposure; affected versions were not specified.