drm/sprd: fix potential NULL dereference
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/sprd: fix potential NULL dereference
'drm' could be null in sprd_drm_shutdown, and drm_warn maybe dereference it, remove this warning log.
v1 -> v2: - Split checking platform_get_resource() return value to a separate patch - Use dev_warn() instead of removing the warning log
From the CVE record · Linux
The Linux kernel's drm/sprd shutdown path may pass a null drm pointer to drm_warn, causing a potential NULL dereference. The input does not establish an attacker action, access requirement, or user interaction needed to trigger it.
Engineers running Linux kernels with the drm/sprd component should check whether their kernel is affected; affected versions are not specified.