drm/msm/dp: Free resources after unregistering them
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c943b4948b5848fc0e07f875edbd35a973879e22 · < fa0048a4b1fa7a50c8b0e514f5b428abdf69a6f8| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/msm/dp: Free resources after unregistering them
The DP component's unbind operation walks through the submodules to unregister and clean things up. But if the unbind happens because the DP controller itself is being removed, all the memory for those submodules has just been freed.
Change the order of these operations to avoid the many use-after-free that otherwise happens in this code path.
Patchwork: https://patchwork.freedesktop.org/patch/542166/
From the CVE record · Linux
The Linux kernel’s DP component can use freed submodule memory during unbind if the DP controller is being removed. The input does not establish how an attacker could trigger this condition or whether authentication or user interaction is required.
Engineers running Linux kernels with the drm/msm/dp component should check their versions; affected versions are not specified.