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 459ABDF59 for ; Tue, 9 Dec 2025 01:33:11 +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=1765243992; cv=none; b=AwTgwAe1vxihrhrz4kQnYaV+VgjrDqnzaFMrsdcNIxIuf45OYOkLYLfKLW0UuGHn7VcCLiOkReQCO/yuVcPU3VnMPTT8qFHiyf3yJ3RLRTQlzfVSd0ViuesbCAUJvccavK5fpcbbL1FA+sccnUibisuK1dNlQZ3fXxj55YYupec= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765243992; c=relaxed/simple; bh=umSYMY/kIGnIGb8Itccl2pIGblcxfK12BrZ0BCZfJoU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dnbcc25IbFDjSIs7Fzi7KbuW2CnZBlXSi1hVbt6MDxQaQChMFbWJINX85KIoJRIMFsOq60AkYZEQFVcQq13vARLck54ngU/XTY85WpG7EUtmDUkMcmQTEe/B6/J0U0JUvYa9rjTuL6VkVkGP7KjhVwrPCW2owy6KSH+Eog0ygZ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JuVYJuc3; 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="JuVYJuc3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44639C4CEF1; Tue, 9 Dec 2025 01:33:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765243991; bh=umSYMY/kIGnIGb8Itccl2pIGblcxfK12BrZ0BCZfJoU=; h=From:To:Cc:Subject:Date:Reply-To:From; b=JuVYJuc3FGL+tqh8mK+ml2FVWkDLQb4kGNxoa89PbHCRHN1jwc1xzYJIPqWpxDedq +343IWIMzg3Ktrc+bH6820JIrhLAcs3ATva7k0XeJl3rPifpTwVtZRdFdWC+wi/sJy T8LBTR0Cy5ON4cRMytUmAmwbfDGaHvlyQmdR1N7k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53851: drm/msm/dp: Drop aux devices together with DP controller Date: Tue, 9 Dec 2025 10:31:35 +0900 Message-ID: <2025120901-CVE-2023-53851-a201@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=3096; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0uB10epKlKaVU0kY8I9BwrAhYvPATGM2gkPPJyWV2QI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnm1VcluYM2BTVeuTu3rffkd2Oht7pTF9r+4z8/Wa+p3 5ylpeR8RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkSgnDgr3fX0yd9fL/uZjP lT/3/j0xe9/tJfoMCxY9fdvGou6+dNIOw9Y5Uvar7qxqewwA 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/msm/dp: Drop aux devices together with DP controller Using devres to depopulate the aux bus made sure that upon a probe deferral the EDP panel device would be destroyed and recreated upon next attempt. But the struct device which the devres is tied to is the DPUs (drm_dev->dev), which may be happen after the DP controller is torn down. Indications of this can be seen in the commonly seen EDID-hexdump full of zeros in the log, or the occasional/rare KASAN fault where the panel's attempt to read the EDID information causes a use after free on DP resources. It's tempting to move the devres to the DP controller's struct device, but the resources used by the device(s) on the aux bus are explicitly torn down in the error path. The KASAN-reported use-after-free also remains, as the DP aux "module" explicitly frees its devres-allocated memory in this code path. As such, explicitly depopulate the aux bus in the error path, and in the component unbind path, to avoid these issues. Patchwork: https://patchwork.freedesktop.org/patch/542163/ The Linux kernel CVE team has assigned CVE-2023-53851 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit 2b57f726611e294dc4297dd48eb8c98ef1938e82 and fixed in 6.3.13 with commit e09ed06938807cb113cddd0708ed74bd8cdaff33 Issue introduced in 6.1 with commit 2b57f726611e294dc4297dd48eb8c98ef1938e82 and fixed in 6.4.4 with commit 2fde37445807e6e6d7981402d0bf1be0e5d81291 Issue introduced in 6.1 with commit 2b57f726611e294dc4297dd48eb8c98ef1938e82 and fixed in 6.5 with commit a7bfb2ad2184a1fba78be35209b6019aa8cc8d4d Issue introduced in 6.0.7 with commit 8768663188e4169333f66583e4d2432e65c421df 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-53851 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/dp/dp_display.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/e09ed06938807cb113cddd0708ed74bd8cdaff33 https://git.kernel.org/stable/c/2fde37445807e6e6d7981402d0bf1be0e5d81291 https://git.kernel.org/stable/c/a7bfb2ad2184a1fba78be35209b6019aa8cc8d4d