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 71A3619149F for ; Tue, 30 Jul 2024 07:51:42 +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=1722325902; cv=none; b=avQQ/pJJFR7NW2eaYhuMki8lQznFBzEhei0bIc1WHJy9Oy/cKm5riH2i14nUiWf0MFiqn5CjJxp9f/L/hb3xApJMFea2qf4Ny6mrfZPHZV3r78mVcVCMND6dP9o2Z974bu3UQx1NkmkFoymfoJMmrnyAFpM9w4JlXC72nvH0VLA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722325902; c=relaxed/simple; bh=4L2QW+afRnDT8OAOnRjvcO5KR1h3O07s6oRF4Fm6m/8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=a9u91RMmOCkfhBapxTsNBL74qSPK2biYrGRqXBMNwPbE5KBoARyDpYzwYigNKJ/BZfASIGu4uI0vYLzYmUdYMWcTKTzjfOqxB+yw+mkluNTk2Pf/uq2fV9x0k7DVzmyzshph7w4sxwM6tqsEWN+CehBxexzSwUBF3SzcN95VBfE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=L5Xajjow; 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="L5Xajjow" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9003C32782; Tue, 30 Jul 2024 07:51:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722325902; bh=4L2QW+afRnDT8OAOnRjvcO5KR1h3O07s6oRF4Fm6m/8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=L5XajjowFxH+09w5N82sucECkSTokIT9rWdDzWkgIBuVA6/w9pIs4DgBC6wbDXHIA 1aO75tPXfwwIBdUZaBnpd4ZVBPzAHtJTWItPaZTKsxA59pSfQNG2kbn/7iYmuTGezd 7PWkz2Uzr6IWuhG75BGuh8ZqQ9rluSacFtBw326Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42227: drm/amd/display: Fix overlapping copy within dml_core_mode_programming Date: Tue, 30 Jul 2024 09:48:25 +0200 Message-ID: <2024073038-CVE-2024-42227-cdd1@gregkh> X-Mailer: git-send-email 2.45.2 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=1738; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4L2QW+afRnDT8OAOnRjvcO5KR1h3O07s6oRF4Fm6m/8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkrZs0qPLZ4wang/8+PJq778/Oq7iNLgUWXp+ivrDvHK fLCwGGTYUcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMROk4w4KZJ95wKEwXq3z5 6cZD0333Q4uevd7LMD9wx/orAb1pewOcu1NmXPSd+9ViRT4A X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Fix overlapping copy within dml_core_mode_programming [WHY] &mode_lib->mp.Watermark and &locals->Watermark are the same address. memcpy may lead to unexpected behavior. [HOW] memmove should be used. The Linux kernel CVE team has assigned CVE-2024-42227 to this issue. Affected and fixed versions =========================== Fixed in 6.9.9 with commit 9342da15f249 Fixed in 6.10 with commit f1fd8a0a54e6 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-42227 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/dml2/display_mode_core.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/9342da15f2491d8600eca89c8e0da08876fb969b https://git.kernel.org/stable/c/f1fd8a0a54e6d23a6d16ee29159f247862460fd1