Not scored
Revert "drm/msm: Add missing check and destroy for alloc_ordered_workqueue"
- Severity
- Not scored
- Exploit likelihood
- 0.20% (higher than 10% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: Revert "drm/msm: Add missing check and destroy for alloc_ordered_workqueue" This reverts commit 643b7d0869cc7f1f7a5ac7ca6bd25d88f54e31d0. A recent patch that tried to fix up the msm_drm_init() paths with respect to the workqueue but only ended up making things worse: First, the newly added calls to msm_drm_uninit() on early errors would trigger NULL-pointer dereferences, for example, as the kms pointer would not have been initialised. (Note that these paths were also modified by a second broken error handling patch which in effect cancelled out this part when merged.) Second, the newly added allocation sanity check would still leak the previously allocated drm device. Instead of trying to salvage what was badly broken (and clearly not tested), let's revert the bad commit so that clean and backportable fixes can be added in its place. Patchwork: https://patchwork.freedesktop.org/patch/525107/
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 643b7d0869cc7f1f7a5ac7ca6bd25d88f54e31d0 before 9078b434587722a6f2958dc1d536af6e39634db9, from 643b7d0869cc7f1f7a5ac7ca6bd25d88f54e31d0 before dfa70344d1b5f5ff08525a8c872c8dd5e82fc5d9, 6.3 Not affected: before 6.3, from 6.3.2 up to 6.3.*, from 6.4 up to * | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: Revert "drm/msm: Add missing check and destroy for alloc_ordered_workqueue" This reverts commit 643b7d0869cc7f1f7a5ac7ca6bd25d88f54e31d0. A recent patch that tried to fix up the msm_drm_init() paths with respect to the workqueue but only ended up making things worse: First, the newly added calls to msm_drm_uninit() on early errors would trigger NULL-pointer dereferences, for example, as the kms pointer would not have been initialised. (Note that these paths were also modified by a second broken error handling patch which in effect cancelled out this part when merged.) Second, the newly added allocation sanity check would still leak the previously allocated drm device. Instead of trying to salvage what was badly broken (and clearly not tested), let's revert the bad commit so that clean and backportable fixes can be added in its place. Patchwork: https://patchwork.freedesktop.org/patch/525107/
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: Revertir ’drm/msm: Add missing check and destroy for alloc_ordered_workqueue’ Esto revierte el commit 643b7d0869cc7f1f7a5ac7ca6bd25d88f54e31d0. Un parche reciente que intentó corregir las rutas de msm_drm_init() con respecto a la workqueue pero solo terminó empeorando las cosas: Primero, las llamadas recién añadidas a msm_drm_uninit() en errores tempranos desencadenarían desreferencias de puntero NULL, por ejemplo, ya que el puntero kms no habría sido inicializado. (Tenga en cuenta que estas rutas también fueron modificadas por un segundo parche de manejo de errores defectuoso que, en efecto, canceló esta parte al fusionarse.) Segundo, la comprobación de cordura de asignación recién añadida seguiría filtrando el dispositivo drm previamente asignado. En lugar de intentar rescatar lo que estaba gravemente roto (y claramente no probado), revirtamos el commit defectuoso para que correcciones limpias y retrocompatibles puedan ser añadidas en su lugar. Patchwork: https://patchwork.freedesktop.org/patch/525107/
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-54217 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2023-54217 changed 2026-10-28 | Public domain |