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 7BBE024EF6D for ; Thu, 6 Mar 2025 16:28:34 +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=1741278514; cv=none; b=YeZFTlaA0mc3IFDOGweG8YH5bpdAJIyXHymL0AtIkm3ki6VOStEsiJ5w5nHHQA9C0l+k2+JWabFN8Vinc+2l8ceh4WBP/IUDOa5lyOgmQeTeEJ2U/JzyAteSIi9KpTCYtTM26A6+CaQKtji7jHvCnnxdx/DODirPArvZGMBAsqk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741278514; c=relaxed/simple; bh=dUmWDgFtp9LSfPW8fxGZSoYBA0MyeIneipQJNJL+oYI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FC04MwcGkO3ZEWZY8z/TeXHitu1cgKOjjtRF6iouCokOzszFGXTxmvcSVpyo90PBPsht7mU4j68ioTUQ36JeBLo8G2uQp4QjOHEWczKsahfidt8Khhqa3ZeTJPdgdyw8SMSeoZ1B61ABhPdRqxNmXFDnoXS6udgjJ9i8c3zmZq8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YXcdZ4TQ; 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="YXcdZ4TQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87315C4CEE4; Thu, 6 Mar 2025 16:28:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1741278513; bh=dUmWDgFtp9LSfPW8fxGZSoYBA0MyeIneipQJNJL+oYI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YXcdZ4TQMtxVEB4A+7qcg5rC8X6PwESCN3Ok+6nxWsiExgFBJDOcjPi0ujxaH74CY UqBseA9qNhv2zRqm+s5G7tlZHPLhkhjfDALBzvjEB4qZoMGG2OX1olAx7yrPrz7PLO +rfEz6y4uqdb6Gt77e9VHwRGX5SitEqEvQmQK3eM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-58086: drm/v3d: Stop active perfmon if it is being destroyed Date: Thu, 6 Mar 2025 17:28:25 +0100 Message-ID: <2025030624-CVE-2024-58086-080c@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=2927; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dUmWDgFtp9LSfPW8fxGZSoYBA0MyeIneipQJNJL+oYI=; b=owGbwMvMwCRo6H6F97bub03G02pJDOknz2pqc54RWeeX632ldBtPgf7E4y/SpKSX+XxvdL3Ab S/LdsCgI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYS+IthwYJZu2unPZ8qLf7/ 4Wm3nXl7tmnl/2KYXxR7cfHEv99jBMSernF0XxnnFz4tBQA= 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: Stop active perfmon if it is being destroyed If the active performance monitor (`v3d->active_perfmon`) is being destroyed, stop it first. Currently, the active perfmon is not stopped during destruction, leaving the `v3d->active_perfmon` pointer stale. This can lead to undefined behavior and instability. This patch ensures that the active perfmon is stopped before being destroyed, aligning with the behavior introduced in commit 7d1fd3638ee3 ("drm/v3d: Stop the active perfmon before being destroyed"). The Linux kernel CVE team has assigned CVE-2024-58086 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 26a4dc29b74a137f45665089f6d3d633fcc9b662 and fixed in 6.1.129 with commit 95036d4c01167568166108d42c2b0e9f8dbd7d2b Issue introduced in 5.15 with commit 26a4dc29b74a137f45665089f6d3d633fcc9b662 and fixed in 6.6.79 with commit eb0e0eca0eab93f310c6c37b8564049366704691 Issue introduced in 5.15 with commit 26a4dc29b74a137f45665089f6d3d633fcc9b662 and fixed in 6.12.16 with commit 1c5673a2c8926adbb61f340c779b28e18188a8cd Issue introduced in 5.15 with commit 26a4dc29b74a137f45665089f6d3d633fcc9b662 and fixed in 6.13.4 with commit f8805b12f477bd964e2820a87921c7b58cc2dee3 Issue introduced in 5.15 with commit 26a4dc29b74a137f45665089f6d3d633fcc9b662 and fixed in 6.14-rc1 with commit 21f1435b1e6b012a07c42f36b206d2b66fc8f13b 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-58086 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_perfmon.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/95036d4c01167568166108d42c2b0e9f8dbd7d2b https://git.kernel.org/stable/c/eb0e0eca0eab93f310c6c37b8564049366704691 https://git.kernel.org/stable/c/1c5673a2c8926adbb61f340c779b28e18188a8cd https://git.kernel.org/stable/c/f8805b12f477bd964e2820a87921c7b58cc2dee3 https://git.kernel.org/stable/c/21f1435b1e6b012a07c42f36b206d2b66fc8f13b