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 69E7F14386D for ; Thu, 1 May 2025 13:08:00 +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=1746104880; cv=none; b=nEsEmAwyoTnkLKHMSYB9L4iZkQfoDbQ8A56xz0YjEns7cWew+aX2Qec2Z7EIi7nOG0eYsGn81ElPiAZDSNt1esYPfd2AiV5GTzB0KuYeAg1ZDMCxtf8KIuZKkB2uoPtCagc+vwRgkXaQt7FpiB6gMkm2LTCC+/hgqhEQa+Dm4/A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746104880; c=relaxed/simple; bh=nEOcOjEC9QQNPwN8OzM3gqQrSmj/T7nhrKliV+X2l9o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=L73bEOkNnxNGsqWngykXJEMu6e1uR4+jU5CjKj9pVf2jidkuTlqjeDhwnYhbmSwJXaiYUlFmOo7mHOuKc2BsdNgefJNlXilDFvPrm+Zfi2Di2XJuQhypEilb2iHL8wfyu9Z2ZT/uelH6s6167H1NBNbSvvC6lahdpwHTPQwxtww= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nGbHMGxP; 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="nGbHMGxP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F92CC4CEE3; Thu, 1 May 2025 13:07:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746104879; bh=nEOcOjEC9QQNPwN8OzM3gqQrSmj/T7nhrKliV+X2l9o=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nGbHMGxPlYvyJLqj2FtbTuFVLB8IuNHmmqSznyRfPPy2JXpU7BS0WKXcWtePgeW2R N09Dn1dxN30GTqqW904WJB/r/Z6/q4sXIXN7T7vErlXtetN+q0X3PPOmxoeqjW7uSx vm9fV7doAkjJh7+rk+2jIzKOr8PztNNjGc4v8z0c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37764: drm/imagination: fix firmware memory leaks Date: Thu, 1 May 2025 15:07:12 +0200 Message-ID: <2025050111-CVE-2025-37764-d81b@gregkh> X-Mailer: git-send-email 2.49.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=3348; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bbvcsJ20Lz5Dc2jDXmgjhBFfGgT2UrfXgDKwLelogH4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnChf8FuMof1ryoenjsAcfiVHEz7/zLy1foa63W2KX9s lC6yf9rRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEvpRhwdWbVUdU/8eV5d/M OrSD90rE5yMLvzEs2PJCtMDuGate6bL5ElfmLjfy6t6bDwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/imagination: fix firmware memory leaks Free the memory used to hold the results of firmware image processing when the module is unloaded. Fix the related issue of the same memory being leaked if processing of the firmware image fails during module load. Ensure all firmware GEM objects are destroyed if firmware image processing fails. Fixes memory leaks on powervr module unload detected by Kmemleak: unreferenced object 0xffff000042e20000 (size 94208): comm "modprobe", pid 470, jiffies 4295277154 hex dump (first 32 bytes): 02 ae 7f ed bf 45 84 00 3c 5b 1f ed 9f 45 45 05 .....E..<[...EE. d5 4f 5d 14 6c 00 3d 23 30 d0 3a 4a 66 0e 48 c8 .O].l.=#0.:Jf.H. backtrace (crc dd329dec): kmemleak_alloc+0x30/0x40 ___kmalloc_large_node+0x140/0x188 __kmalloc_large_node_noprof+0x2c/0x13c __kmalloc_noprof+0x48/0x4c0 pvr_fw_init+0xaa4/0x1f50 [powervr] unreferenced object 0xffff000042d20000 (size 20480): comm "modprobe", pid 470, jiffies 4295277154 hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 09 00 00 00 0b 00 00 00 ................ 00 00 00 00 00 00 00 00 07 00 00 00 08 00 00 00 ................ backtrace (crc 395b02e3): kmemleak_alloc+0x30/0x40 ___kmalloc_large_node+0x140/0x188 __kmalloc_large_node_noprof+0x2c/0x13c __kmalloc_noprof+0x48/0x4c0 pvr_fw_init+0xb0c/0x1f50 [powervr] The Linux kernel CVE team has assigned CVE-2025-37764 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit cc1aeedb98ad347c06ff59e991b2f94dfb4c565d and fixed in 6.12.25 with commit 490c30fd554597e78f66650044877e7defb5f83c Issue introduced in 6.8 with commit cc1aeedb98ad347c06ff59e991b2f94dfb4c565d and fixed in 6.14.4 with commit 891c12ba855ccb34c06a2e5da75c644683087036 Issue introduced in 6.8 with commit cc1aeedb98ad347c06ff59e991b2f94dfb4c565d and fixed in 6.15-rc2 with commit a5b230e7f3a55bd8bd8d012eec75a4b7baa671d5 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-2025-37764 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/imagination/pvr_fw.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/490c30fd554597e78f66650044877e7defb5f83c https://git.kernel.org/stable/c/891c12ba855ccb34c06a2e5da75c644683087036 https://git.kernel.org/stable/c/a5b230e7f3a55bd8bd8d012eec75a4b7baa671d5