drm/msm/dp: fix aux-bus EP lifetime
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/dp: fix aux-bus EP lifetime
Device-managed resources allocated post component bind must be tied to the lifetime of the aggregate DRM device or they will not necessarily be released when binding of the aggregate device is deferred.
This can lead resource leaks or failure to bind the aggregate device when binding is later retried and a second attempt to allocate the resources is made.
For the DP aux-bus, an attempt to populate the bus a second time will simply fail ("DP AUX EP device already populated").
Fix this by tying the lifetime of the EP device to the DRM device rather than DP controller platform device.
Patchwork: https://patchwork.freedesktop.org/patch/502672/
From the CVE record · Linux
The Linux kernel DRM DP aux-bus can retain an endpoint device when binding of the aggregate DRM device is deferred. A later binding attempt can fail because the endpoint is already populated, and resources can leak. The input does not specify an attacker path, authentication requirements, or user interaction.
Engineers running Linux kernels with the affected DRM DP aux-bus code should check their builds; affected versions are not specified.