[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025123026-CVE-2023-54217-ff07@gregkh>
Date: Tue, 30 Dec 2025 13:13:47 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2023-54217: Revert "drm/msm: Add missing check and destroy for alloc_ordered_workqueue"
From: Greg Kroah-Hartman <gregkh@...nel.org>
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/
The Linux kernel CVE team has assigned CVE-2023-54217 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.3 with commit 643b7d0869cc7f1f7a5ac7ca6bd25d88f54e31d0 and fixed in 6.3.2 with commit 9078b434587722a6f2958dc1d536af6e39634db9
Issue introduced in 6.3 with commit 643b7d0869cc7f1f7a5ac7ca6bd25d88f54e31d0 and fixed in 6.4 with commit dfa70344d1b5f5ff08525a8c872c8dd5e82fc5d9
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-2023-54217
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_drv.c
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/9078b434587722a6f2958dc1d536af6e39634db9
https://git.kernel.org/stable/c/dfa70344d1b5f5ff08525a8c872c8dd5e82fc5d9
Powered by blists - more mailing lists