drm/connector: only call HDMI audio helper plugged cb if non-null
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: only call HDMI audio helper plugged cb if non-null
On driver remove, sound/soc/codecs/hdmi-codec.c calls the plugged_cb with NULL as the callback function and codec_dev, as seen in its hdmi_remove function.
The HDMI audio helper then happily tries calling said null function pointer, and produces an Oops as a result.
Fix this by only executing the callback if fn is non-null. This means the .plugged_cb and .plugged_cb_dev members still get appropriately cleared.
From the CVE record · Linux
The Linux kernel’s DRM connector HDMI audio helper can call a null callback when the HDMI codec driver is removed, causing a kernel Oops. The input does not establish whether an attacker can trigger driver removal or what access or user interaction would be required.
Engineers running the Linux kernel should check whether their builds include the affected DRM connector HDMI audio helper; affected versions are not specified.