drm/msm: fix use-after-free on probe deferral
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/msm: fix use-after-free on probe deferral
The bridge counter was never reset when tearing down the DRM device so that stale pointers to deallocated structures would be accessed on the next tear down (e.g. after a second late bind deferral).
Given enough bridges and a few probe deferrals this could currently also lead to data beyond the bridge array being corrupted.
Patchwork: https://patchwork.freedesktop.org/patch/502665/
From the CVE record · Linux
The Linux kernel’s drm/msm bridge teardown can retain stale pointers after probe deferral, causing a use-after-free on a later teardown. With enough bridges and repeated probe deferrals, data beyond the bridge array may also be corrupted. The input does not specify attacker access or authentication requirements.
Engineers running Linux kernels with the drm/msm component should check whether their kernel includes the fix; affected versions are not specified.