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 E45367D419 for ; Thu, 29 Feb 2024 15:00:34 +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=1709218835; cv=none; b=PyFJkYvn03w1XpCOP0TgQaDW3mBzLe5ExEvvk/uOMvkmqvyO7vgTvkDQRfocId9jj4NVwWKqZ5zOpwhDbYvQ3KZ3NjjBG+2+rzvdQUWgOlxubJj+E97PMTuxQZHp1I3UbtaOd9go8VxgGSsS0u6yrheSTwPFBhEYV2G0d2GH95s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709218835; c=relaxed/simple; bh=REMPmDBLhOdGPA5JP0kK2e1jckJ+7EJUFy4COiSmouk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=r9iur1UZHHaHoXlwAcdJ6d9wI/6v0Z8Ky6oSKwVgP6S+5hW/r8JtQTrXgNwJu67B6ghgJORTcK+PYgIxafoPHsSJPvPblWORlJHjb7bI/vFDaOl2LtMKGMhdGmJp/pEeiLUKJMMBGubR8e3KxWXie6D0NNcqlC8dM63MQkmEyZQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HkIL3tED; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HkIL3tED" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD4D9C433C7; Thu, 29 Feb 2024 15:00:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709218834; bh=REMPmDBLhOdGPA5JP0kK2e1jckJ+7EJUFy4COiSmouk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=HkIL3tEDfOke/qqm3a65UeNpOvZcFTcetAZWfIduMIxYv3r68pV4gD4M0Kx4oTG+W f+GliMYkqRkAs6N9WPSWCb22JM/2UD1Xl2WGFdPyT0Lx8UX3tkM/nfPM68oFqwe7zL LrgbqXfS0CPfTM8zlBPrcnLl6wrk0xc0cAttQ3c4/+MDH2km+rJ2/YyuGBHs8He7LS yS6TP7YmAhqZ3jBHFIJ7SQhDEoFQmQXWii+QMJqNgOTfRDK8BGveUlFSQgAlNvl4ba 9Qgpo4H1NWF1oqPiOrW8GRx7cWeE5d7mcS3m8jkFR9F+00Tdv8PnAysztZnAZjroXp VYIVDsYA5lWQw== From: Lee Jones To: linux-cve-announce@vger.kernel.org Cc: Lee Jones Subject: CVE-2023-52485: drm/amd/display: Wake DMCUB before sending a command Date: Thu, 29 Feb 2024 15:00:10 +0000 Message-ID: <20240229150009.1525992-2-lee@kernel.org> X-Mailer: git-send-email 2.44.0.rc1.240.g4c46232300-goog Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3443; i=lee@kernel.org; h=from:subject; bh=REMPmDBLhOdGPA5JP0kK2e1jckJ+7EJUFy4COiSmouk=; b=owEBbQKS/ZANAwAKAVGvii+H/HdhAcsmYgBl4Jv5NzfuRIYmazUapTPBkRZg86iueGGT06Nxd mr8a4qL5VWJAjMEAAEKAB0WIQR2tsk1o74gmpTwh0hRr4ovh/x3YQUCZeCb+QAKCRBRr4ovh/x3 YWEZD/0ZzguuG0Rm6Jkz1r/WKXs5ZpuRHovMMPxwhZ0adNkceNXejYIYsTbm4RQpGLNSUGyZdhV cPa5mwitipphShqJ3CIUV/2YikmzyLRhhkMmXIEHZXd2nr+CnwaHW1Naj8DDmegue2Fe6cOwZzT 8dXfmRYGC9x2wqcde0FoD5J0l1rSFiyCLE5+c4bXjrbq+Vvv/Q40g5NVmIG05/3XkkO6rStQl5M yBQ5ERKVTIiQP+l3YuILWRhD0ZggriEvoZoFr7PP/BZtjtlKgRrFSZ+DEksllkLdt1vmO2Tcx5/ WvNfPd236v4ikcczRRrjonzJg4Lga0GFc0YeFZMKdMI3suG+hNzpzcTl5Ta2Z04qOHcv986W8wN EtxMMeUd7k+sXacuLVbzQQWG+INRQ9RB6kwIrqb9dcJWtnW4MgKWieiays9a0i0rksSlDVOXGrM RJ4U4ZWJb+Iwr/23cYtl0O8vscU6/EnJNnNlehCoXq1rSVttRbRkTnr7YCsb8INaqnUTHDmR5AJ EVm30sEKCA9Fjy3AodtDqdoRKI2wDHkKBOZOL1uYwqZhMInyn4F78rwCt9x/grV8cjpACSLmeFz QIQ8jveP9ZULByMd3AD3/bMMpdl2shRKPun38XkXXe0CakYHdjyiitLbdvKaoYrPPDKHoWzEHYw 4bL5kQoCaVhNp1A== X-Developer-Key: i=lee@kernel.org; a=openpgp; fpr=76B6C935A3BE209A94F0874851AF8A2F87FC7761 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Wake DMCUB before sending a command [Why] We can hang in place trying to send commands when the DMCUB isn't powered on. [How] For functions that execute within a DC context or DC lock we can wrap the direct calls to dm_execute_dmub_cmd/list with code that exits idle power optimizations and reallows once we're done with the command submission on success. For DM direct submissions the DM will need to manage the enter/exit sequencing manually. We cannot invoke a DMCUB command directly within the DM execution helper or we can deadlock. The Linux kernel CVE team has assigned CVE-2023-52485 to this issue. Affected and fixed versions =========================== Fixed in 6.7.3 with commit 303197775a97 Fixed in 6.8-rc1 with commit 8892780834ae Please see https://www.kernel.org or 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-52485 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/amd/display/amdgpu_dm/amdgpu_dm.c drivers/gpu/drm/amd/display/dc/bios/command_table2.c drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/dcn31_clk_mgr.c drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/dcn314_clk_mgr.c drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/dcn316_clk_mgr.c drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c drivers/gpu/drm/amd/display/dc/core/dc.c drivers/gpu/drm/amd/display/dc/core/dc_hw_sequencer.c drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c drivers/gpu/drm/amd/display/dc/dc_dmub_srv.h drivers/gpu/drm/amd/display/dc/dc_helper.c drivers/gpu/drm/amd/display/dc/dce/dmub_abm_lcd.c drivers/gpu/drm/amd/display/dc/dce/dmub_hw_lock_mgr.c drivers/gpu/drm/amd/display/dc/dce/dmub_outbox.c drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubp.c drivers/gpu/drm/amd/display/dc/dcn31/dcn31_dio_link_encoder.c drivers/gpu/drm/amd/display/dc/dcn31/dcn31_panel_cntl.c drivers/gpu/drm/amd/display/dc/hwss/dcn21/dcn21_hwseq.c drivers/gpu/drm/amd/display/dc/hwss/dcn30/dcn30_hwseq.c drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c drivers/gpu/drm/amd/display/dc/hwss/dcn32/dcn32_hwseq.c drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_dpia.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/303197775a97416b62d4da69280d0c120a20e009 https://git.kernel.org/stable/c/8892780834ae294bc3697c7d0e056d7743900b39