drm/client: Do not destroy NULL modes
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 |
|
|
6.18.176.19.77.0In the Linux kernel, the following vulnerability has been resolved:
drm/client: Do not destroy NULL modes
'modes' in drm_client_modeset_probe may fail to kcalloc. If this occurs, we jump to 'out', calling modes_destroy on it, which dereferences it. This may result in a NULL pointer dereference in the error case. Prevent that.
From the CVE record · Linux
In the Linux kernel's drm/client code, a failed memory allocation in drm_client_modeset_probe can lead to a NULL pointer dereference during cleanup. The input does not specify whether an attacker can trigger the failure, or what access or interaction would be required.
Engineers running Linux kernels with the affected drm/client code should check their deployments; affected versions are not specified.