drm/vc4: kms: Add missing drm_crtc_commit_put
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/vc4: kms: Add missing drm_crtc_commit_put
Commit 9ec03d7f1ed3 ("drm/vc4: kms: Wait on previous FIFO users before a commit") introduced a global state for the HVS, with each FIFO storing the current CRTC commit so that we can properly synchronize commits.
However, the refcounting was off and we thus ended up leaking the drm_crtc_commit structure every commit. Add a drm_crtc_commit_put to prevent the leakage.
From the CVE record · Linux
A missing reference-count release in the Linux kernel's drm/vc4 KMS code leaks a drm_crtc_commit structure on every commit. The input does not describe an attacker action, access requirement, or user interaction needed to trigger the leak.
Engineers running Linux kernels with drm/vc4 KMS should check their versions; affected versions are not specified.