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 2F401653 for ; Sat, 17 Aug 2024 08:54:56 +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=1723884896; cv=none; b=i606RVRsOXbWvCSxZzVdnQg3nyoEpIaTv9Ms524BRTFsaq/f9YP/UqL79aUuB6lnabD0VF21U8YVF/jGUhUGi5I2nku+5Zs8JF7o0W5wSYrEI2PFiWUTBwMLsjQLoMhaxmr63JnCIKredKYbqnNNOIGIDmO+2ms8RDIyl68KwWs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723884896; c=relaxed/simple; bh=NCuWYEF5LAgpv1H9mmA2lpZPRTJe83ouUSN7c/odeos=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mFp6KnRyxQgR0TwdeysNeqSwegLu6o+xOhL+W2yhYs5ayH9Nhqri6EfUTKHVSvl8A/4ihFLawvK7pyzxmivbDoGMDfnB6+9oBaePTOVsr7CQuV8SEaV0aSZpsxdf3aunjKTUkJmYfq9W9vP8NBMtnttk1KriJqaT79ett0Ia7/A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=S6uvBCIF; 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="S6uvBCIF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 968E2C116B1; Sat, 17 Aug 2024 08:54:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723884896; bh=NCuWYEF5LAgpv1H9mmA2lpZPRTJe83ouUSN7c/odeos=; h=From:To:Cc:Subject:Date:Reply-to:From; b=S6uvBCIFLILBsNlW1UTqrhTXto6I4gTExB5uOXnLOrv00nzLylzsg0w4Po/4wqKk5 qqr7xlOYD+b8xZPkJsX99sq58KOoIU96MgWLdcz5tSKWeiFxtV9VjjQuT8rOKImPy4 d4AaumhVG/4oIEfv0GOHq47V5XSGAOn42dCHXKBM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42263: drm/v3d: Fix potential memory leak in the timestamp extension Date: Sat, 17 Aug 2024 10:54:37 +0200 Message-ID: <2024081737-CVE-2024-42263-31b3@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=2024; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NCuWYEF5LAgpv1H9mmA2lpZPRTJe83ouUSN7c/odeos=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHUn0flupu9niSVJgSmHRDv+7+9hX7EtLehoe3ZS05c /LO5Ns1HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRDB2GuWI/2fTjJxvMstAX vJ13nsP83baFMQzzlAsW+L+N2WN/TzvriSTLgdItijEMAA== 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 timestamp 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 753ce4fea62182c77e1691ab4f9022008f25b62e) The Linux kernel CVE team has assigned CVE-2024-42263 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 9ba0ff3e083f and fixed in 6.10.4 with commit 9b5033ee2c5a Issue introduced in 6.8 with commit 9ba0ff3e083f and fixed in 6.11-rc2 with commit 0e50fcc20bd8 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-42263 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/9b5033ee2c5af6d1135a403df32d219ab57e55f9 https://git.kernel.org/stable/c/0e50fcc20bd87584840266e8004f9064a8985b4f