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 70A2464D for ; Thu, 27 Mar 2025 16:45: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=1743093952; cv=none; b=G8KpYLdFXCsKk5+EO4AJdcARRZd+zTSxoBhuH1u3EA0UVCDsDffM2w37mJW0LpIc4doGkxV0mFruWXGNY/3PmvFV5ueKI18IPa9GTGD+ky8spAePasNts1+cdBjDh6xrLkQXi03FFjkbDuuaqmsL8LCcyZm/qzZrtTrIvqbPFIE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093952; c=relaxed/simple; bh=BYVnLzl08yUJdnCJuEtWU6CMfDJy+HjojAo8ns0Mmgc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mRGD1eDGQPV+lrI79aldF9wVpWsV6sY5tFdVg1cknt3Cn6omH/INv47wtYod8w4edMM4DB30xcKiZMCBlG4dqO6g6kB1+AQA3sX4z4mcncJYFDFZG0W/w6GmqTOKGudTmyV7q+a5OIBQGZZxYbhaWcsVyQcX3B39MjTyBfqJF7o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VturipLm; 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="VturipLm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7CDAC4CEDD; Thu, 27 Mar 2025 16:45:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743093952; bh=BYVnLzl08yUJdnCJuEtWU6CMfDJy+HjojAo8ns0Mmgc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VturipLmjPyFkMRx59HfZORXbTmvs2CKynzmUDj7Rm6Eh8BzJSlJlnu7XfPOUD5qw g9X2BvAp8E38zvFgqxMPsVmUv0mqn7CI8K8+GX3R9o8/fQvYHU1FkLRlNiYf42sGYB Xvo7UfwP7xIsNNUQrgDkXBp4SYWgL5fI+/p/TZYs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53002: drm/i915: Fix a memory leak with reused mmap_offset Date: Thu, 27 Mar 2025 17:43:49 +0100 Message-ID: <2025032712-CVE-2023-53002-1f76@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=2185; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BYVnLzl08yUJdnCJuEtWU6CMfDJy+HjojAo8ns0Mmgc=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlPGxTmKk9tWflBjDWl4AJDVSX/taWXw1n8yvadVCq9/ 2h7tvXdjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI23aGBbsmr7t50XF6x0ET T1m/lzxHDzLMvcGwYDnP7pDeqwVc1lOF+Gouqk7cl2D3BAA= 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/i915: Fix a memory leak with reused mmap_offset drm_vma_node_allow() and drm_vma_node_revoke() should be called in balanced pairs. We call drm_vma_node_allow() once per-file everytime a user calls mmap_offset, but only call drm_vma_node_revoke once per-file on each mmap_offset. As the mmap_offset is reused by the client, the per-file vm_count may remain non-zero and the rbtree leaked. Call drm_vma_node_allow_once() instead to prevent that memory leak. The Linux kernel CVE team has assigned CVE-2023-53002 to this issue. Affected and fixed versions =========================== Issue introduced in 5.7 with commit 7865559872074a9ab169c87915504661d630addf and fixed in 6.1.9 with commit 0bdc4b4ba7206c452ee81c82fa66e39d0e1780fb Issue introduced in 5.7 with commit 7865559872074a9ab169c87915504661d630addf and fixed in 6.2 with commit 0220e4fe178c3390eb0291cdb34912d66972db8a 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-2023-53002 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/i915/gem/i915_gem_mman.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/0bdc4b4ba7206c452ee81c82fa66e39d0e1780fb https://git.kernel.org/stable/c/0220e4fe178c3390eb0291cdb34912d66972db8a