drm/sun4i: backend: fix error pointer dereference
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 96180dde23b799272ab2e7d47210c8840799d0d2 · < 06277983eca4a31d3c2114fa33d99a6e82484b11| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/sun4i: backend: fix error pointer dereference
The function drm_atomic_get_plane_state() can return an error pointer and is not checked for it. Add error pointer check.
Detected by Smatch: drivers/gpu/drm/sun4i/sun4i_backend.c:496 sun4i_backend_atomic_check() error: 'plane_state' dereferencing possible ERR_PTR()
From the CVE record · Linux
The Linux kernel's sun4i DRM backend may dereference an error pointer returned by drm_atomic_get_plane_state() during an atomic check. The input does not establish an attacker-controlled outcome or specify whether exploitation requires network access, local access, authentication, or user interaction.
Engineers running Linux kernels with the sun4i DRM backend should check their versions against the vendor advisory; affected versions are not specified.