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 F1C6A524D7 for ; Wed, 22 May 2024 08:20:03 +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=1716366004; cv=none; b=HC76OC5nwdI0ueUO/CEDMbp/o8h2CycE+6i93QoX+MnCFLEsRr+8X15CgaucW57VCdOgintM6GgNrdG6E2oP0degY0jzUy0AA5khjefI/+iDjD1afJu2JnqI/jeLFtOCF3wJKhvF74xbqedERmY+NcLXsI2bzmFv06RbRcjw260= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716366004; c=relaxed/simple; bh=2bP8/O6v5GLGGiwTsOFh6Ngq6iAufPICdy3knfti0tc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TGWbbzy/ACm2C6A5qc/wDd0ZNGAEktFlmBvwR6MXi4c6RqjjHL0fSpTeATjFUjRcpx7l28kYK1SIp+dXnPPkDHz37azewzOgrvXJseX5U1/99CA7USguewbn6wRxIG4+9zPjxJ8Zojb94b8qpje6PCFN2ITcSiXHEc4RiX2lYd4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HwmRAMT1; 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="HwmRAMT1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0FC27C2BD11; Wed, 22 May 2024 08:20:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716366003; bh=2bP8/O6v5GLGGiwTsOFh6Ngq6iAufPICdy3knfti0tc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=HwmRAMT1ChSWflSgJPWa2NeFS2NCYzOfNJB1oXIWs2ICsFSAXgVVXkZv8VB6smo0m PdtbiiUI2gvxKpMH/YCsApaDZctsJB+d+jmSl78tUpUizqY6UuDHeTbdd/rZzYukUC wxyopKbcUq6FNtQv3+kFG1AcllOTOOpRiSUvX4Jc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47487: drm/amdgpu: fix out of bounds write Date: Wed, 22 May 2024 10:19:47 +0200 Message-ID: <2024052239-CVE-2021-47487-6e14@gregkh> X-Mailer: git-send-email 2.45.1 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=1814; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2bP8/O6v5GLGGiwTsOFh6Ngq6iAufPICdy3knfti0tc=; b=owGbwMvMwCRo6H6F97bub03G02pJDGm+q+b8OFomWJm/8pzQxR9Pf7//3r3QzC9je4b8qrlbf 3xvamgM7IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJbP3CME99ertYpN7ieUEu u1gjLhscEvUUv8QwV5DzejaTcP4x9tXL3y3IbBSv0z27HQA= 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/amdgpu: fix out of bounds write Size can be any value and is user controlled resulting in overwriting the 40 byte array wr_buf with an arbitrary length of data from buf. The Linux kernel CVE team has assigned CVE-2021-47487 to this issue. Affected and fixed versions =========================== Fixed in 5.10.77 with commit eb3b6805e3e9 Fixed in 5.14.16 with commit d3ed72495a59 Fixed in 5.15 with commit 5afa7898ab7a 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-2021-47487 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_debugfs.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/eb3b6805e3e9d98b2507201fd061a231988ce623 https://git.kernel.org/stable/c/d3ed72495a59fbfb9377450c8dfe94389a6509a7 https://git.kernel.org/stable/c/5afa7898ab7a0ec9c28556a91df714bf3c2f725e