CVE-2026-93058: drm/msm: Only fini scheduler after successful init
From: Greg Kroah-Hartman <[email protected]>
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/
The Linux kernel CVE team has assigned CVE-2026-93058 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.15 with commit 1d8a5ca436ee4a28eec14cb813f790f7cdeeee19 and fixed in 6.18.52 with commit d43e1bbfd43458b9242806eec77ea3b032134baf Issue introduced in 5.15 with commit 1d8a5ca436ee4a28eec14cb813f790f7cdeeee19 and fixed in 7.2.6 with commit 09b360eb6ce345996a30fad8c86e9df80f41cd7e Issue introduced in 5.15 with commit 1d8a5ca436ee4a28eec14cb813f790f7cdeeee19 and fixed in 7.3-rc1 with commit e2332abed2a4d3caa59052095dc16e4ce44791ea
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-93058
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/gpu/drm/msm/msm_ringbuffer.c
drivers/gpu/drm/msm/msm_ringbuffer.h
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/d43e1bbfd43458b9242806eec77ea3b032134baf https://git.kernel.org/stable/c/09b360eb6ce345996a30fad8c86e9df80f41cd7e https://git.kernel.org/stable/c/e2332abed2a4d3caa59052095dc16e4ce44791ea