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 AB48818BC30 for ; Fri, 27 Sep 2024 12:36:46 +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=1727440606; cv=none; b=DuOeu9fhMcObaGOAjAN+qPOalLmF2m3iHi7+sXzFAaQHriylSbJwC5hP3/SRtICqA74XaUDDQL43KBkhC99/WuUe8Finp97OWmNIQxK6MsL0AFugHMpooqQQCu9NfkG2HGO6edVZXbixBFlSix3di/GVbYC+5Lrn2+NIc8d2ytQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727440606; c=relaxed/simple; bh=F1DR0GNMcKtc1Z7I+7e8DhZ6GVccrw+Y5NGOVcQMuFg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RfBX01HWyaMSlipExl5k/aZr7cfufqkHB8aTwwKpiwgzoVzZxU4qQWFbVgNuTNKWMR0BPKKK+Dsl+Bkbde9Sy1SN99uWPs3M7IiQln8LHFqeBfWhJhe0hNFj4i+ebczCEBiuSEib+uU945SiNqDRUraVdnJCW5XEP3ZZvV9zDKc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VcA9QqOW; 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="VcA9QqOW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA740C4CEC4; Fri, 27 Sep 2024 12:36:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727440606; bh=F1DR0GNMcKtc1Z7I+7e8DhZ6GVccrw+Y5NGOVcQMuFg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VcA9QqOWw4GdgSm0apQ/QPLgVaBp8TFwoHS1QuWJOrw4RVALzxAnaDvQ4PQYAfV05 uANA5owPl0ucunkVPEBoe8558eQrRi9DpiKDXz2en7xAzV1eXmJ5CoEjrz7FZpRCDm BjEBU+QGq4C4QZWr6dla9hb2rw5zBwnT+KpGjbFw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46818: drm/amd/display: Check gpio_id before used as array index Date: Fri, 27 Sep 2024 14:36:23 +0200 Message-ID: <2024092712-CVE-2024-46818-8d41@gregkh> X-Mailer: git-send-email 2.46.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=2335; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=F1DR0GNMcKtc1Z7I+7e8DhZ6GVccrw+Y5NGOVcQMuFg=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnflu0RDLqx/8vFxOu6u67t2eH1e16Pu9uXubtDHXZ3r 3nY+/SWe0csC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMhD+OYZ6lTtbqltZZXQ5S /+Y6tVUvCator2KYn3fnifXK1f9+ZP+M+u9z75v/nDccKwE= 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: Check gpio_id before used as array index [WHY & HOW] GPIO_ID_UNKNOWN (-1) is not a valid value for array index and therefore should be checked in advance. This fixes 5 OVERRUN issues reported by Coverity. The Linux kernel CVE team has assigned CVE-2024-46818 to this issue. Affected and fixed versions =========================== Fixed in 5.4.284 with commit 8520fdc8ecc3 Fixed in 5.10.226 with commit 40c2e8bc117c Fixed in 5.15.167 with commit 0184cca30cad Fixed in 6.1.109 with commit 276e3fd93e3b Fixed in 6.6.50 with commit 08e7755f754e Fixed in 6.10.9 with commit 3d4198ab612a Fixed in 6.11 with commit 2a5626eeb3b5 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-46818 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/gpio/gpio_service.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/8520fdc8ecc38f240a8e9e7af89cca6739c3e790 https://git.kernel.org/stable/c/40c2e8bc117cab8bca8814735f28a8b121654a84 https://git.kernel.org/stable/c/0184cca30cad74d88f5c875d4e26999e26325700 https://git.kernel.org/stable/c/276e3fd93e3beb5894eb1cc8480f9f417d51524d https://git.kernel.org/stable/c/08e7755f754e3d2cef7d3a7da538d33526bd6f7c https://git.kernel.org/stable/c/3d4198ab612ad48f73383ad3bb5663e6f0cdf406 https://git.kernel.org/stable/c/2a5626eeb3b5eec7a36886f9556113dd93ec8ed6