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 7CB5A146011 for ; Tue, 21 May 2024 15:36:50 +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=1716305810; cv=none; b=Lp3fVmXx30qW6MHRq0X7Q/HiBmO9Ju+PPW/grMjaF7F8sPOvASsvZIUGq4dAVe9utzBk74dWCmZR2Nr1K77HhyVH5RR4gW45vE/uPTNHvSGtoKrrxQ7LMaDJBTT2fJiBqaCN9UTUbXRuINp/ANjqiFZPm/ENDinD0rT75oevPIY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305810; c=relaxed/simple; bh=tLpdGFIfBo0sx3r6NVwdZxDdWq1qjg9r5sDSGp3fhRs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Z6efzIt2L++94B83xqDz+Yr+HQcG9S0kb9so4S6h4OPb3DPBUd6VDYotrAWxwRHKGFRhNL/bm19Mvmuy7JCVHfZX1hm1G+QdI7o7KXbkRMk9k+YpmOIQQ8aOd1xJTI7kEiMWdJPeEzY0JMgkoYiFPC0SpGIBxS2KixOU4BTEY0o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0+SwUgus; 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="0+SwUgus" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06274C32786; Tue, 21 May 2024 15:36:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305810; bh=tLpdGFIfBo0sx3r6NVwdZxDdWq1qjg9r5sDSGp3fhRs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0+SwUgusUsmsuJh0/Cv/smA7mRutHF3QIt9PK4mIUw6qonG8EaYR8iSdFRwiNfgLv fNHHInTn1JwY7jsp51SgJSYF5IbRhHmTF70aQCZ1Uk57IgNrVhfLBs0oeSAq+/54aE RRmUxwL0euhLKXu5h8EuGwoOlFrAvJ+efrAWGk3I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52815: drm/amdgpu/vkms: fix a possible null pointer dereference Date: Tue, 21 May 2024 17:31:51 +0200 Message-ID: <2024052103-CVE-2023-52815-a80a@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=2128; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tLpdGFIfBo0sx3r6NVwdZxDdWq1qjg9r5sDSGp3fhRs=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++8x7xJaHX5WsVpJee9xmwd/XV5pU7nMLH9ec3Kmw+ 8DWlSKTOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAinbwMCxaby+2+oL/Z4uHi gt2Me18nnK6ddIRhwYWP8hEtrwKjgqYsC9V46FK2wWpaOAA= 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/vkms: fix a possible null pointer dereference In amdgpu_vkms_conn_get_modes(), the return value of drm_cvt_mode() is assigned to mode, which will lead to a NULL pointer dereference on failure of drm_cvt_mode(). Add a check to avoid null pointer dereference. The Linux kernel CVE team has assigned CVE-2023-52815 to this issue. Affected and fixed versions =========================== Fixed in 5.15.140 with commit eaa03ea366c8 Fixed in 6.1.64 with commit 33fb1a555354 Fixed in 6.5.13 with commit 8c6c85a07376 Fixed in 6.6.3 with commit 70f831f21155 Fixed in 6.7 with commit cd90511557fd 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-52815 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_vkms.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/eaa03ea366c85ae3cb69c8d4bbc67c8bc2167a27 https://git.kernel.org/stable/c/33fb1a555354bd593f785935ddcb5d9dd4d3847f https://git.kernel.org/stable/c/8c6c85a073768df68c1a3fea143d013a38c66d34 https://git.kernel.org/stable/c/70f831f21155c692bb336c434936fd6f24f3f81a https://git.kernel.org/stable/c/cd90511557fdfb394bb4ac4c3b539b007383914c