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 6AB07190670 for ; Tue, 30 Jul 2024 07:50:49 +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=1722325849; cv=none; b=tjjwXJ2zwGLl/ryAk1l02JrslbL9XcdD+YT6muWsedBXqoRE7BLkqqxy4sfdueK4EYFVp4tc1SPMuAzFZg+iVnar2ORoKQXu/fpsal85ESmQJo0omPSHW0+XSDeorugCAltZ8ZDKa+/8GBL2e6SP51crVykNleT7aBV+um4S2W4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722325849; c=relaxed/simple; bh=y7eXDxiLsE1oZXH8+W4HWgm8KYs9F06iteObWzNne/w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aAsefSs8XHTmpbhgkjyrvg8HzrHq6IeNFEnk3M3Xqq9vrlJoEcMGPJLXlWS+UJECK743IgZy5cVWNyAf5Bn1iC6siul4/4HvAr/UfZtOvOrNlL4Md7j42wJ0OpkPpj09GJ2nKN1PenzzmCOXil9vRA/dd1vbcnO6jkKMavNTY/M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MEZJw/Bv; 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="MEZJw/Bv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C37D8C32782; Tue, 30 Jul 2024 07:50:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722325849; bh=y7eXDxiLsE1oZXH8+W4HWgm8KYs9F06iteObWzNne/w=; h=From:To:Cc:Subject:Date:Reply-to:From; b=MEZJw/Bvy8BCOLsXh1m6Wry/lRMrK6UEp46pQwKiAxPmY8BIqHbVwEEPbbpdk2MVs AG2pjSLyqygXqw9WrswnZDAJFzJETAEkc8phw7aupNm2qWuGqDsZlyx32RfClkUtEz YSgpV2UcasRMEIad3o5ZuUxfYOv1FzrDWp1ALhMM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42119: drm/amd/display: Skip finding free audio for unknown engine_id Date: Tue, 30 Jul 2024 09:47:37 +0200 Message-ID: <2024073024-CVE-2024-42119-abc5@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=2513; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=y7eXDxiLsE1oZXH8+W4HWgm8KYs9F06iteObWzNne/w=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkrZvUsrXnsrBXFbGPFxhepmnb0trdYbJf9TNPkFl7GS uGpbSIdsSwMgkwMsmKKLF+28RzdX3FI0cvQ9jTMHFYmkCEMXJwCMJE2T4Z5dluE9gnPXPHyYckL 21VP2h1ql+/6wTA/zNmquadceN+RP9WypvGphkvm348EAA== 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: Skip finding free audio for unknown engine_id [WHY] ENGINE_ID_UNKNOWN = -1 and can not be used as an array index. Plus, it also means it is uninitialized and does not need free audio. [HOW] Skip and return NULL. This fixes 2 OVERRUN issues reported by Coverity. The Linux kernel CVE team has assigned CVE-2024-42119 to this issue. Affected and fixed versions =========================== Fixed in 4.19.318 with commit 9eb4db08a808 Fixed in 5.4.280 with commit eacca028a623 Fixed in 5.10.222 with commit ffa7bd3ca9cf Fixed in 5.15.163 with commit afaaebdee9bb Fixed in 6.1.98 with commit 874261358d31 Fixed in 6.6.39 with commit 95ad20ee3c4e Fixed in 6.9.9 with commit 881fb6afc000 Fixed in 6.10 with commit 1357b2165d9a 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-42119 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/core/dc_resource.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/9eb4db08a808e3a3ba59193aeb84a57a6dc4d8c9 https://git.kernel.org/stable/c/eacca028a623f608607d02457122ee5284491e18 https://git.kernel.org/stable/c/ffa7bd3ca9cfa902b857d1dc9a5f46fededf86c8 https://git.kernel.org/stable/c/afaaebdee9bb9f26d9e13cc34b33bd0a7bf59488 https://git.kernel.org/stable/c/874261358d31fc772f2823604167e670983cc1ca https://git.kernel.org/stable/c/95ad20ee3c4efbb91f9a4ab08e070aa3697f5879 https://git.kernel.org/stable/c/881fb6afc0004c5e6392ae2848f825bf051dae14 https://git.kernel.org/stable/c/1357b2165d9ad94faa4c4a20d5e2ce29c2ff29c3