drm: bridge: cdns-mhdp8546: Fix possible null pointer dereference
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ fb43aa0acdfd600c75b8c877bdf9f6e9893ffc9b · < 47889711da20be9b43e1e136e5cb68df37cbcc79| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm: bridge: cdns-mhdp8546: Fix possible null pointer dereference
In cdns_mhdp_atomic_enable(), the return value of drm_mode_duplicate() is assigned to mhdp_state->current_mode, and there is a dereference of it in drm_mode_set_name(), which will lead to a NULL pointer dereference on failure of drm_mode_duplicate().
Fix this bug add a check of mhdp_state->current_mode.
From the CVE record · Linux
The Linux kernel’s cdns-mhdp8546 DRM bridge can dereference a null pointer if drm_mode_duplicate() fails during cdns_mhdp_atomic_enable(). This can cause a kernel crash; the input does not specify an attack path, authentication requirements, or user interaction.
Engineers running the Linux kernel should check whether their build includes the affected cdns-mhdp8546 bridge code; affected versions are not specified.