drm/connector/hdmi: Fix out of bounds memory read
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/connector/hdmi: Fix out of bounds memory read
A helper function was copying a given audio infoframe into the connector's copy but using the size of the destination (a generic target, sized to accept many different data blocks) not the source (a very specific type of data block). Thus, it was copying 60 bytes of data from a 28 byte allocation.
Fix that by using the source size instead, together with a build bug on the source size actually being smaller than the destination.
I hit this running KUnit tests under KASAN (while debugging something else entirely). In the real world, it seems unlikely to cause an actual problem. It is a read not a write so it can't corrupt any memory. However, it could potentially fall off the end of a page and cause an accvio bug.
From the CVE record · Linux
A Linux kernel HDMI connector helper reads 60 bytes from a 28-byte audio infoframe allocation. The read cannot corrupt memory, but it could cross a page boundary and cause an access violation. The input does not describe an attack path or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels should check whether their kernel includes the affected HDMI connector code; affected versions are not specified.