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 3ED01653 for ; Sat, 17 Aug 2024 08:54:52 +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=1723884893; cv=none; b=MZe5uBJ8+HiEw2InRrxz+UTzIS0EZ4jfVS9fpQExj9Dmib99V8NsJ0snExU7zXdxXi6M+TvM3xDxjQ6GO9fNXyZMfMYEZEZ7Z5YJsjr78HTu5Je9bHgR3T7Czef8X44gMqfYhJsre+no4fjsx7elruE0tgZhZ4EyHI0306aM6JE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723884893; c=relaxed/simple; bh=JvTTSHK63ejq+yKkVo+oBGUDVtqZ/gh77lL6wgkX2EA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tG3m0yiJnRt4TZD2UCdV/Su2elQ1K227UD8v8K+EtB7p0qumuisCqZhCVVzjaeA1YlCm9mCDzBiniOzbBuKDxPa6m+VoPtFNbu4U+VJSCVfJZGk5LLwBjlhsxEWB84XAjqJpQomtUQmhZ+RFCj4eIC62CP2jSgztze2FNo9eYzE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pGvZ5f7Y; 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="pGvZ5f7Y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 532DCC116B1; Sat, 17 Aug 2024 08:54:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723884892; bh=JvTTSHK63ejq+yKkVo+oBGUDVtqZ/gh77lL6wgkX2EA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=pGvZ5f7YQWbKJukNZmRZqglsL2T9HIigbRAbekk/3+Ybd2vb8HI8fJNVSniAh2DvD naRTYBUhs/VNAmHmVbJ6REk7oGRI3enl9kfUGWzOYCzRXa6nhPIg2EGNFEmrN9VJnI +RTTYUk3florjuN9xTCLyLQkNPampos129kjTDrk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42262: drm/v3d: Fix potential memory leak in the performance extension Date: Sat, 17 Aug 2024 10:54:36 +0200 Message-ID: <2024081736-CVE-2024-42262-7156@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=2026; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JvTTSHK63ejq+yKkVo+oBGUDVtqZ/gh77lL6wgkX2EA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHUn1rRcROqjzRZGXY+iC4nJ1/5+TMRi+ez6Ja/7y2C wR3HFXsiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIkovmaY733/O5+Lb07+jUuf NnPucNL7qPJkAsOCOVEXPj3vOPzym7uxbfL3/9FpkUm7AQ== 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/v3d: Fix potential memory leak in the performance extension If fetching of userspace memory fails during the main loop, all drm sync objs looked up until that point will be leaked because of the missing drm_syncobj_put. Fix it by exporting and using a common cleanup helper. (cherry picked from commit 484de39fa5f5b7bd0c5f2e2c5265167250ef7501) The Linux kernel CVE team has assigned CVE-2024-42262 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit bae7cb5d6800 and fixed in 6.10.4 with commit ad5fdc48f7a6 Issue introduced in 6.8 with commit bae7cb5d6800 and fixed in 6.11-rc2 with commit 32df4abc44f2 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-42262 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/v3d/v3d_drv.h drivers/gpu/drm/v3d/v3d_sched.c drivers/gpu/drm/v3d/v3d_submit.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/ad5fdc48f7a63b8a98493c667505fe4d3864ae21 https://git.kernel.org/stable/c/32df4abc44f24dbec239d43e2b26d5768c5d1a78