Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0143733343D for ; Wed, 24 Dec 2025 12:27:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766579269; cv=none; b=PNZceJQi36m4H8JvpQZ/7oTknD4OAa5YXlOVcAQT41rWepvz2/NqzzLDDhKKf0eLwPFw+uhVfyjufObYwogbSnpLUqDvEdF+eGn0gKlzNJM58fHe9kkTAQZN86ir0zWW4FCYTobpnL2w7jzbpMdYuWFCWyXOghFp4GlECocp7gw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766579269; c=relaxed/simple; bh=oowkMF8y0gH/xhlekOrRVjM6nfQPEZ97VR+QibPQcW4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZPdq4dStsD3Bu8ILNYy7kqZys8S/Y2aiTbHtSsKr5ZQOGdeL3Q2K0sddU99AsRfUDcMqg5bDGLh3v0aP2DCo+WoaV3VexBV6UuMHFCMgEXC4GhmneXo4sB3X16swav7pArkyQ3faOejWG1nG9KyxE8A2XxtDDqjtLoAuuzwnh+4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xMbbA/Vt; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="xMbbA/Vt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 221F8C4CEFB; Wed, 24 Dec 2025 12:27:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766579268; bh=oowkMF8y0gH/xhlekOrRVjM6nfQPEZ97VR+QibPQcW4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=xMbbA/VtBkkOr49dFFBJRGurGgvMikf3kPvnHWJ7/6SWo1vhb+YNTSZcSKiiELkl8 3i3orrhplXHclGIPtkiPHSpY249i+cdMQ7AuMqVT3zFlTFYDP5/JKuJSzhBAlImJJI 5HbR+QQ7OuPvubhlext/4YYLD1MVSgPhgGbf++d0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54047: drm/rockchip: dw_hdmi: cleanup drm encoder during unbind Date: Wed, 24 Dec 2025 13:26:40 +0100 Message-ID: <2025122423-CVE-2023-54047-42ff@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2131; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=t7IRFZfDXhNXk6Pg3FrSqMrrvuYv4C4615TdUGANj3Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnet9+X8GY+DxFeNHOmJEdo8EpRBzPOl9+5GDVenEz+Z ZkhX5jREcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPh52eYZyF5cI7u9KUirNde Ful7qPVzut18z7BgZ4JR15fyW4aODB5efPM6GhqKdSsB X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/rockchip: dw_hdmi: cleanup drm encoder during unbind This fixes a use-after-free crash during rmmod. The DRM encoder is embedded inside the larger rockchip_hdmi, which is allocated with the component. The component memory gets freed before the main drm device is destroyed. Fix it by running encoder cleanup before tearing down its container. [moved encoder cleanup above clk_disable, similar to bind-error-path] The Linux kernel CVE team has assigned CVE-2023-54047 to this issue. Affected and fixed versions =========================== Fixed in 6.1.30 with commit 110d4202522373d629d14597af9bac97eb58bd67 Fixed in 6.3.4 with commit 218fe9b624545f4bcfb16cdb35ac3d60c8b0d8c7 Fixed in 6.4 with commit b5af48eedcb53491c02ded55d5991e03d6da6dbf 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-54047 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/rockchip/dw_hdmi-rockchip.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/110d4202522373d629d14597af9bac97eb58bd67 https://git.kernel.org/stable/c/218fe9b624545f4bcfb16cdb35ac3d60c8b0d8c7 https://git.kernel.org/stable/c/b5af48eedcb53491c02ded55d5991e03d6da6dbf