CVE-2023-53851: drm/msm/dp: Drop aux devices together with DP controller
In the Linux kernel, the following vulnerability has been resolved:
drm/msm/dp: Drop aux devices together with DP controller
Using devres to depopulate the aux bus made sure that upon a probe deferral the EDP panel device would be destroyed and recreated upon next attempt.
But the struct device which the devres is tied to is the DPUs (drmdev->dev), which may be happen after the DP controller is torn down.
Indications of this can be seen in the commonly seen EDID-hexdump full of zeros in the log, or the occasional/rare KASAN fault where the panel's attempt to read the EDID information causes a use after free on DP resources.
It's tempting to move the devres to the DP controller's struct device, but the resources used by the device(s) on the aux bus are explicitly torn down in the error path. The KASAN-reported use-after-free also remains, as the DP aux "module" explicitly frees its devres-allocated memory in this code path.
As such, explicitly depopulate the aux bus in the error path, and in the component unbind path, to avoid these issues.
Patchwork: https://patchwork.freedesktop.org/patch/542163/
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.189 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.3.13 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.4.4
Event History
Frequently Asked Questions
What is the severity of CVE-2023-53851?
CVE-2023-53851 has not been assigned a severity rating yet but involves memory management issues in the Linux kernel.
How do I fix CVE-2023-53851?
To resolve CVE-2023-53851, ensure that you are using the latest version of the Linux kernel that includes the necessary patches.
What are the potential impacts of CVE-2023-53851?
CVE-2023-53851 could lead to improper resource management which may affect system stability in environments using DisplayPort.
Is CVE-2023-53851 exploitable in all versions of the Linux kernel?
CVE-2023-53851 affects specific versions of the Linux kernel, and its exploitability depends on the presence of the vulnerable code.
What components of the Linux kernel are affected by CVE-2023-53851?
CVE-2023-53851 specifically impacts the drm/msm/dp components related to DisplayPort in the Linux kernel.