Description
In the Linux kernel, the following vulnerability has been resolved: drm/msm: Only fini scheduler after successful init msm_ringbuffer_new() destroys a partially initialized ring through msm_ringbuffer_destroy() when an allocation or scheduler setup step fails. If drm_sched_init() fails before it finishes initializing the scheduler, the failure path still calls drm_sched_fini(). That teardown path assumes the scheduler work items, lists, and workqueue state were initialized. Track successful scheduler initialization and call drm_sched_fini() only after drm_sched_init() returned 0. This issue was found by a static analysis checker and confirmed by manual source review. Patchwork: https://patchwork.freedesktop.org/patch/738905/
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
1d8a5ca436ee4a28eec14cb813f790f7cdeeee19 to < bd2a5a876904eaf688a093cd73986abc3571f26baffected1d8a5ca436ee4a28eec14cb813f790f7cdeeee19 to < aafc9258efeec98fcb7e3998356b4b25bf1ad159affected1d8a5ca436ee4a28eec14cb813f790f7cdeeee19 to < d43e1bbfd43458b9242806eec77ea3b032134bafaffected1d8a5ca436ee4a28eec14cb813f790f7cdeeee19 to < 09b360eb6ce345996a30fad8c86e9df80f41cd7eaffected1d8a5ca436ee4a28eec14cb813f790f7cdeeee19 to < e2332abed2a4d3caa59052095dc16e4ce44791eaaffected
Linux Linux
Default version status: affected
5.15affected0 to < 5.15unaffected6.6.160 to ≤ 6.6.*unaffected6.12.114 to ≤ 6.12.*unaffected6.18.52 to ≤ 6.18.*unaffected7.2.6 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/bd2a5a876904eaf688a093cd73986abc3571f26b ↗
- https://git.kernel.org/stable/c/aafc9258efeec98fcb7e3998356b4b25bf1ad159 ↗
- https://git.kernel.org/stable/c/d43e1bbfd43458b9242806eec77ea3b032134baf ↗
- https://git.kernel.org/stable/c/09b360eb6ce345996a30fad8c86e9df80f41cd7e ↗
- https://git.kernel.org/stable/c/e2332abed2a4d3caa59052095dc16e4ce44791ea ↗