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 D21E0191F61 for ; Tue, 30 Jul 2024 07:51:45 +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=1722325905; cv=none; b=CSD6YtUDMZ0dVw6CZqikpvyIC/3Q5miXUn58OOSDujRPJxapsZlPchTTMlDPDc1PmBkXjNCwdtNnoKzLtjLRSDM24w6LGXf8H7SRNaxQIRmlsT4zduOEnH3490115sangyfEU3bCzYh5ilgbj45EOt8Wo552ok/yJ+pQ4Y08gSE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722325905; c=relaxed/simple; bh=LbBIiL4UgvpZ1XH3OifWyYuMb9IdKz3nu8H2WdEyeII=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZkdEym1gVHSw2rzG1fV/inQfjDw0C7w+6aZnprJ8YJq4scQ+W4W5AmbpL+FpsqYkx/NDzh7U15MtC1m56BSTPspWFhyZmWabCK+oitbd1pt+1NIGtLCGdE7LefgdzVV3e3dOyBglCXqfxJdAfXCoQWEfeWHe7eFe1XqpjakFSNw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=U4zunYu8; 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="U4zunYu8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33DDDC32782; Tue, 30 Jul 2024 07:51:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722325905; bh=LbBIiL4UgvpZ1XH3OifWyYuMb9IdKz3nu8H2WdEyeII=; h=From:To:Cc:Subject:Date:Reply-to:From; b=U4zunYu85QVGCFsqrQdIOzMs9NkmEnvmwhwLbwf9SdeJPdokYij+bCVx+RLPn1TBS iN2DJnhAtmPn+pAFKeb+V+trexZz8jUtNwN0t+bk8vgVL/ox6J2KrL7b+skgsN3P5V 3FUuGGAzDVHeNwnIbB7FkoTzdVsbQnrXt5Antxrk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42228: drm/amdgpu: Using uninitialized value *size when calling amdgpu_vce_cs_reloc Date: Tue, 30 Jul 2024 09:48:26 +0200 Message-ID: <2024073038-CVE-2024-42228-86f5@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=1890; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=LbBIiL4UgvpZ1XH3OifWyYuMb9IdKz3nu8H2WdEyeII=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkrZs26pPK81P664QnvCG6TgFkz06JTNCYUNm5pk7jLn l925+rMjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI0VaGeeqJzSucdmdyxMTO Pqn7S1MqbtX6SQzzK2d27noS/OTXKV5hqS5Hy339s9gdAA== 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: Using uninitialized value *size when calling amdgpu_vce_cs_reloc Initialize the size before calling amdgpu_vce_cs_reloc, such as case 0x03000001. V2: To really improve the handling we would actually need to have a separate value of 0xffffffff.(Christian) The Linux kernel CVE team has assigned CVE-2024-42228 to this issue. Affected and fixed versions =========================== Fixed in 6.6.39 with commit 855ae72c2031 Fixed in 6.9.9 with commit f8f120b3de48 Fixed in 6.10 with commit 88a9a467c548 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-42228 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/amdgpu/amdgpu_vce.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/855ae72c20310e5402b2317fc537d911e87537ef https://git.kernel.org/stable/c/f8f120b3de48b8b6bdf8988a9b334c2d61c17440 https://git.kernel.org/stable/c/88a9a467c548d0b3c7761b4fd54a68e70f9c0944