drm/i915: clear CRTC color blob pointers after dropping refs
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| 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/i915: clear CRTC color blob pointers after dropping refs
intel_crtc_put_color_blobs() drops the CRTC color blob references, but leaves the corresponding pointers unchanged.
This can matter in intel_crtc_prepare_cleared_state(), which frees the old CRTC hw state before calling intel_dp_tunnel_atomic_clear_stream_bw(). The latter can fail while looking up the DP tunnel group state, for example with -EDEADLK.
If that happens, the function returns without completing the cleared state preparation. The failed atomic state will then be cleared by the atomic core and intel_crtc_free_hw_state() can be called again for the same state, dropping the same blob references again.
Clear the blob pointers after dropping the references so repeated cleanup of the same CRTC hw state is safe.
(cherry picked from commit d5005addb5f68e8a0edce249506757bdc9e3d8c8)
From the CVE record · Linux
The Linux kernel drm/i915 driver can drop CRTC color blob references twice if DP tunnel state lookup fails during cleared-state preparation and the atomic core cleans up the state again. The input does not establish what an attacker could do or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the drm/i915 driver should check their kernel's status; affected versions are not specified.