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 706FF446B4 for ; Tue, 21 May 2024 15:38:16 +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=1716305896; cv=none; b=tsBsoKwc2c6XBYIYmyMfxKQXASEzXc3wYkBjPYpX+8SLriA6RfnjpoYiS+hOhpq9T9DogNdfzgCkGUvOZv4rUGX+dQBpHLk29wE/XiqeYtdJLGqbbuyk2EzXIrCs04Andpu7rMwmJJ0rNwtTSb4PB8PlI2tz2cv+kdIL+3AnPsU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305896; c=relaxed/simple; bh=Cmcpbig6qSG4kPNIi9pL45MVCkhBMNCGxQ/hVt+n6oU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UdYilcEyTw/YEbejmdM/pGKl4xNv/gKInNnvAl6vhGvijVz2bFt2sG1FE3vQDd+3wPC466f8ZTysAha96cohtKlsWbuidxzDlLv7yCiQ5/BWDI3ow8cIWplCHUo4LpQ8DvAtPumnUP/i4441Ugswckg7/wjyJGC9xgIwAu5oWr4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oE30H7fm; 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="oE30H7fm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E74EAC2BD11; Tue, 21 May 2024 15:38:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305896; bh=Cmcpbig6qSG4kPNIi9pL45MVCkhBMNCGxQ/hVt+n6oU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=oE30H7fm3Uvul9DdjyQhMOsqO/3efnOQC19zUiK9sJRa/LVZQTO0G0uLSN3nRY2xj VrSWHJIcClvaoBsCuoYvb+gKLTkQqDM+hK5qnRk5y+k702qfRwSJHp83FsvxPx6a5H tMY//na6UtIR+sPJomvkwEkm5pT60Cv2oe0dip8c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52812: drm/amd: check num of link levels when update pcie param Date: Tue, 21 May 2024 17:31:48 +0200 Message-ID: <2024052102-CVE-2023-52812-b5b2@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=1819; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Cmcpbig6qSG4kPNIi9pL45MVCkhBMNCGxQ/hVt+n6oU=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++8y1bBce2R3D/sNMeEHi2q2hT+aZPXB9ZRyWIpa66 GSg7WejjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIVXaGBQeSWo6fccp/PLMw VvlX8Jy8Y7KfaxgWLF8jUHiDk2/74aQclfdmR098b9n0HQA= 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: check num of link levels when update pcie param In SR-IOV environment, the value of pcie_table->num_of_link_levels will be 0, and num_of_levels - 1 will cause array index out of bounds The Linux kernel CVE team has assigned CVE-2023-52812 to this issue. Affected and fixed versions =========================== Fixed in 6.5.13 with commit 5b4574b663d0 Fixed in 6.6.3 with commit 09f617219fe9 Fixed in 6.7 with commit 406e8845356d 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-52812 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/pm/swsmu/smu13/smu_v13_0.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/5b4574b663d0a1a0a62d5232429b7db9ae6d0670 https://git.kernel.org/stable/c/09f617219fe9ccd8d7b65dc3e879b5889f663b5a https://git.kernel.org/stable/c/406e8845356d18bdf3d3a23b347faf67706472ec