From mboxrd@z Thu Jan 1 00:00:00 1970 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 AD0701A3155 for ; Wed, 26 Feb 2025 01:57:32 +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=1740535052; cv=none; b=lVuZ2LZoZcX6Fot87C+Z3Bd5SdW3QHPJie1EXAKB3nB20pjT5SJ/y9YrE8rpXXvnAh5a3F/S2H+oY+m1R5zME1WQOSD40ehZXaYzsqC9iXrMW01c444euktYN7fjd3W83CY47vYAbooTMcyD8fgX/CSJNgCejsAuY5emaXsQbAg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535052; c=relaxed/simple; bh=lAsWDdhukb5k2HKET2Qn6YAgNJ4DoPA+hUhNtOAQWzA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SmYH9I0sXX0SafPcbyhGwkbk5waJjN7/VMbvD4Zh/g9o+Stlau1cbpdIFnOYadsSK8dWMQLhh5Iu+TzSLW4mL1TI48v3K7XRowdYpaSqC8oUqqIUC8sQqXN8Y87XVuZgLu4O+3dz8IRnb0dP0LhXykiBpXC85MQc8xO4ALqqljc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=h11kaTNn; 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="h11kaTNn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7EAEFC4CEDD; Wed, 26 Feb 2025 01:57:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535052; bh=lAsWDdhukb5k2HKET2Qn6YAgNJ4DoPA+hUhNtOAQWzA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=h11kaTNnUuN80DY6HDxrEoXg6545KbWO2w6Gu5Pa7PYbbYN/4Cv0bMKnXNDZFhHMk 9m4yvFFsjY4oFo9eiRArgeIXzQeixxFMhqxHtHOzYbexcqdI1uaRajOIohzO6AEMK5 5Doen6JIuIPq68XUpccXBccMjrBjELjJAzFjhurE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47657: drm/virtio: Ensure that objs is not NULL in virtio_gpu_array_put_free() Date: Wed, 26 Feb 2025 02:54:08 +0100 Message-ID: <2025022650-CVE-2021-47657-6f3d@gregkh> X-Mailer: git-send-email 2.48.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=2703; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lAsWDdhukb5k2HKET2Qn6YAgNJ4DoPA+hUhNtOAQWzA=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SvRSUgSf2y4QK2H4s63qsNgWgwmCxsxdu+TEPFiSH XtupRd0xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwES0DzIsaLssMIO7dG0q8wGG WJumG/5WzL+uMSxokhfw4lrN/PRC/fYO9tt5ExsK2BsB 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/virtio: Ensure that objs is not NULL in virtio_gpu_array_put_free() If virtio_gpu_object_shmem_init() fails (e.g. due to fault injection, as it happened in the bug report by syzbot), virtio_gpu_array_put_free() could be called with objs equal to NULL. Ensure that objs is not NULL in virtio_gpu_array_put_free(), or otherwise return from the function. The Linux kernel CVE team has assigned CVE-2021-47657 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 377f8331d0565e6f71ba081c894029a92d0c7e77 and fixed in 5.15.32 with commit b094fece3810c71ceee6f0921676cb65d4e68c5a Issue introduced in 5.13 with commit 377f8331d0565e6f71ba081c894029a92d0c7e77 and fixed in 5.16.18 with commit ac92b474eeeed75b8660374ba1d129a121c09da8 Issue introduced in 5.13 with commit 377f8331d0565e6f71ba081c894029a92d0c7e77 and fixed in 5.17.1 with commit abc9ad36df16e27ac1c665085157f1a082d39bac Issue introduced in 5.13 with commit 377f8331d0565e6f71ba081c894029a92d0c7e77 and fixed in 5.18 with commit 6b79f96f4a23846516e5e6e4dd37fc06f43a60dd Issue introduced in 5.11.20 with commit 244dbb4abe123779ec30e7c6ca283a681aba5c94 Issue introduced in 5.12.3 with commit 1016c0f62f73d5d2c3a5d1ad1e1fb0cdce1993ae 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-2021-47657 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/virtio/virtgpu_gem.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/b094fece3810c71ceee6f0921676cb65d4e68c5a https://git.kernel.org/stable/c/ac92b474eeeed75b8660374ba1d129a121c09da8 https://git.kernel.org/stable/c/abc9ad36df16e27ac1c665085157f1a082d39bac https://git.kernel.org/stable/c/6b79f96f4a23846516e5e6e4dd37fc06f43a60dd