drm/client: fix null pointer dereference in drm_client_modeset_probe
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ cf13909aee054f5aa667d4b9da0ac7df4f6c1327 · < 612cae53e99ce32a58cb821b3b67199eb6e92dff| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/client: fix null pointer dereference in drm_client_modeset_probe
In drm_client_modeset_probe(), the return value of drm_mode_duplicate() is assigned to modeset->mode, which will lead to a possible NULL pointer dereference on failure of drm_mode_duplicate(). Add a check to avoid npd.
From the CVE record · Linux
The Linux kernel's drm_client_modeset_probe() can dereference a NULL pointer if drm_mode_duplicate() fails. The input does not establish whether an attacker can trigger the failure or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels should check whether their kernel includes the fix; affected versions were not provided.