drm: bridge: dw_hdmi: fix connector access for scdc
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: bridge: dw_hdmi: fix connector access for scdc
Commit 5d844091f237 ("drm/scdc-helper: Pimp SCDC debugs") changed the scdc interface to pick up an i2c adapter from a connector instead. However, in the case of dw-hdmi, the wrong connector was being used to pass i2c adapter information, since dw-hdmi's embedded connector structure is only populated when the bridge attachment callback explicitly asks for it.
drm-meson is handling connector creation, so this won't happen, leading to a NULL pointer dereference.
Fix it by having scdc functions access dw-hdmi's current connector pointer instead, which is assigned during the bridge enablement stage.
[narmstrong: moved Fixes tag before first S-o-b and added Reported-by tag]
From the CVE record · Linux
The Linux kernel's dw-hdmi bridge can pass an unpopulated connector to SCDC functions when drm-meson handles connector creation, leading to a NULL pointer dereference. The input does not establish whether an attacker can trigger this, or specify access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the affected dw-hdmi bridge and drm-meson configuration should check their kernel; affected versions are not specified.