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 A4B8B16C85D for ; Wed, 21 Aug 2024 06:12:44 +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=1724220764; cv=none; b=Ff1bEUsKL0wPZUgw8SNDONtBvtMpJbsunsZzyvkK2l9iBY5myCe0grLhAbPObEA40lV1IJ2MdjRO7x6qw+9huhlZL1xngJ65RczR5bxVfhRhSpFDbG8N65oxftntK/K1Nd0ZBG7AsVyfObzUBdgLT17K9oCocQIyvdhUeHxy9jo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724220764; c=relaxed/simple; bh=/uLlHBtmxNy0COwAtzdJm4EgVr7nPuDhMK0scenKva0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ar99f3ktT6796UWA6v3C1lAioxrpdDjgDiRWxBCt8ny67iqbmHIXQE/aBINW2e9nIBLnD+hnJfcpRc/3Bjo/OffL3pdn6F6jvLSOTwAZ3IkqSlsT69Y3giO99UqlE8Ul0lY1S389hSDyvkklUZHPKSpK0iqOs3czKHNVsrWjMKg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gtnzxO1C; 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="gtnzxO1C" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE6BFC32782; Wed, 21 Aug 2024 06:12:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724220764; bh=/uLlHBtmxNy0COwAtzdJm4EgVr7nPuDhMK0scenKva0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=gtnzxO1CaVvkKk8hNW68HLtwrLy7nLLjk1Chi8bC2Mi01kzDRjHiMmoVdlidyXrcG Q0/lrnKQW1qFfzToRejP2pQnXP85Vzr8YghTliP/kkgiiqD4Crc+GVJn3jgjL7qu1p tgN8/ticbWAfNTEyLNOudFwi1wUo4gtwSHd2QAF0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48899: drm/virtio: Fix GEM handle creation UAF Date: Wed, 21 Aug 2024 14:11:33 +0800 Message-ID: <2024082111-CVE-2022-48899-f3e8@gregkh> X-Mailer: git-send-email 2.46.0 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=2637; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/uLlHBtmxNy0COwAtzdJm4EgVr7nPuDhMK0scenKva0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlHW/5/eqjbc+WJ1iyfCQITNqsd2Xaj/Wt7hCej1IPgP +GGc54v74hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJqK1hWDDtLd+HydO+Zsid LpB/y7RB4crRg6wM8/Sst//ob3gaJFX6S/CMqIgpo/AUQQA= 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: Fix GEM handle creation UAF Userspace can guess the handle value and try to race GEM object creation with handle close, resulting in a use-after-free if we dereference the object after dropping the handle's reference. For that reason, dropping the handle's reference must be done *after* we are done dereferencing the object. The Linux kernel CVE team has assigned CVE-2022-48899 to this issue. Affected and fixed versions =========================== Issue introduced in 4.4 with commit 62fb7a5e1096 and fixed in 4.19.270 with commit 19ec87d06acf Issue introduced in 4.4 with commit 62fb7a5e1096 and fixed in 5.4.229 with commit d01d6d2b06c0 Issue introduced in 4.4 with commit 62fb7a5e1096 and fixed in 5.10.164 with commit 68bcd0638570 Issue introduced in 4.4 with commit 62fb7a5e1096 and fixed in 5.15.89 with commit 011ecdbcd520 Issue introduced in 4.4 with commit 62fb7a5e1096 and fixed in 6.1.7 with commit adc48e5e408a Issue introduced in 4.4 with commit 62fb7a5e1096 and fixed in 6.2 with commit 52531258318e 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-2022-48899 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_ioctl.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/19ec87d06acfab2313ee82b2a689bf0c154e57ea https://git.kernel.org/stable/c/d01d6d2b06c0d8390adf8f3ba08aa60b5642ef73 https://git.kernel.org/stable/c/68bcd063857075d2f9edfed6024387ac377923e2 https://git.kernel.org/stable/c/011ecdbcd520c90c344b872ca6b4821f7783b2f8 https://git.kernel.org/stable/c/adc48e5e408afbb01d261bd303fd9fbbbaa3e317 https://git.kernel.org/stable/c/52531258318ed59a2dc5a43df2eaf0eb1d65438e