From mboxrd@z Thu Jan 1 00:00:00 1970 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 ACFE053803 for ; Tue, 26 Mar 2024 17:50:22 +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=1711475422; cv=none; b=iA0cv44J4UsR3JG7p/jXiEW0JUVu9vq0hK9eq+PcFtk4PA/xwjXykF4lv8CIDJ11wPuixzoZ7lFNgH/2oC/oIWqTyn5own+62jcHJjUH1aNQ1vCh+46JWwojq1GZFZx9wTrfkgDEDxp1w7Xrtu6T6RUEzrtFjKlefo5Hj2OIkXQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711475422; c=relaxed/simple; bh=I9dQFRaQ1vvUJbTTevm54HcE8oipvu6J805l0qMCasY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OqbKMQ1onCNXxrIhEUC5Sd6k1RW3KMsR1Kloaw/HZwI2ivC0CEusgId7kTXtFtebsLalkJUekn2fvNcdI++1MGBV2MqFeOQjwrp17NdxbppqIt4kbOG6g5kxEo7vbZdFwKqUyk3aVEpKDNixwXsF8cRH/Xt27C95XprkkkL43+M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RcStoU5K; 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="RcStoU5K" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D51F6C43394; Tue, 26 Mar 2024 17:50:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711475422; bh=I9dQFRaQ1vvUJbTTevm54HcE8oipvu6J805l0qMCasY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RcStoU5KwI04iOmBG7Fxu3lyF019iSf8kdUT8Vwuz0PFmygvckpEm+xA6k0LGBSXB rhXOrEKKvSMLjRaPbar9xnk00S0Id3afORmFl4s5OkZnOUXIEiCjQItmUkxxE8n6S5 fprrBLNmtDoIKDVvt5FE84MywgGNqi5hpqYFeBgNBLPR8i8iPonV9l12Hwf80AWgQ7 j3U1viLSHtnOvHM7AMD5gnTdAgZ2i55KjGR6CqcrTDcB0R8cKojK0BzMLw0lJQFv18 x+F2sCd/93qV7YWIGRPBS8RfSaV6cNmh8y9WETltrBHjZKQbz3mNOgMJfh7v2f03rZ 6vA4EhBeDry7w== From: Lee Jones To: linux-cve-announce@vger.kernel.org Cc: Lee Jones Subject: CVE-2024-26647: drm/amd/display: Fix late derefrence 'dsc' check in 'link_set_dsc_pps_packet()' Date: Tue, 26 Mar 2024 17:50:13 +0000 Message-ID: <20240326175007.1388794-15-lee@kernel.org> X-Mailer: git-send-email 2.44.0.396.g6e790dbe36-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=2041; i=lee@kernel.org; h=from:subject; bh=I9dQFRaQ1vvUJbTTevm54HcE8oipvu6J805l0qMCasY=; b=owEBbQKS/ZANAwAKAVGvii+H/HdhAcsmYgBmAwrQDdSalcYUqsDSa7LMiGsCyrdwYMQWtIY4j +fmLIJ1LT+JAjMEAAEKAB0WIQR2tsk1o74gmpTwh0hRr4ovh/x3YQUCZgMK0AAKCRBRr4ovh/x3 YeOLD/9229yRqqSV16JqQR3u4VGs4StuU3+Zf7NCH+me0vBb7dhY7Y68ofRnvXj4PdCeMFPs0Bj ESFyV6dnbrRbovveyNX2K61ktsJXmAidK5QcjOjLxfiOz8tbyp3jIYy1SCuop5ntwfNRAGK6031 Mj4XEIygo6RGObfNQeELzjA0hWhBtEhB5pkvlDmLj+R6gnMMWbBSjlHpOQmkmC7RCDRaMuYJGrI RtpakCJ5RPcpHZArN2NJQxQ7N5bd1p7TNCjxRIbt7jm3uCOvr9MbDjaf9bnUqCNnczuLMdC9WlL +JeDGcYSIY0exSoHSmUK0elJsrYzWb0ZxpXtBgBk4xDBW+DM03MwfB7zDnYIh/vZSmlBUs4J1F1 FEaaPIsF3coh0f5cvFJsjEBGQNd2cfGJ31MW4mkrZkL4dKAwn+mzEov8XBYI6pk/xqWe10OID7a cwcpQ519QMqCmBBbIrl9FBZx/8vOlEJaRECcY89jiR9oH6lnduFUn05qztV5Ffh1VCLFCQElRjE M+toA1MBRbJswHBSQqDzGVRtrua8akYVrAncOF1BA/BdloU7Je1m59oIKWKUBjxVz5HuW2m0HfY ESp9DKB2DbjAADW3FtDb0eiHgRsaVuB75HsBuZr1MSzGUw3adJElGIy1UFlDkz6xgOiOwMNfpse QUx6i6e/zRF1RoA== 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: Fix late derefrence 'dsc' check in 'link_set_dsc_pps_packet()' In link_set_dsc_pps_packet(), 'struct display_stream_compressor *dsc' was dereferenced in a DC_LOGGER_INIT(dsc->ctx->logger); before the 'dsc' NULL pointer check. Fixes the below: drivers/gpu/drm/amd/amdgpu/../display/dc/link/link_dpms.c:905 link_set_dsc_pps_packet() warn: variable dereferenced before check 'dsc' (see line 903) The Linux kernel CVE team has assigned CVE-2024-26647 to this issue. Affected and fixed versions =========================== Fixed in 6.6.15 with commit 6aa5ede66651 Fixed in 6.7.3 with commit cf656fc7276e Fixed in 6.8 with commit 3bb9b1f958c3 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-2024-26647 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/dc/link/link_dpms.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/6aa5ede6665122f4c8abce3c6eba06b49e54d25c https://git.kernel.org/stable/c/cf656fc7276e5b3709a81bc9d9639459be2b2647 https://git.kernel.org/stable/c/3bb9b1f958c3d986ed90a3ff009f1e77e9553207