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 F222A1991BF for ; Thu, 27 Mar 2025 16:37:57 +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=1743093478; cv=none; b=l9avpE865ZzgzcNEvl6tGuXEr09SLBRv/L4LLuZ2ENWdHBzcHegITLZVQNhA1NVptQyaGlfjTomBeBAlFBUCmRwL/pkzeo9/pK+GXoooP3yv/+3efbVeigYfoIbaV5UjN8YJxVSkKBwlAPE6QH+vsH21TC1CaYamoNTEIi3cYZs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093478; c=relaxed/simple; bh=GWvb5O1mY9iqTkNQ/l5iwfDX0FTyE2KZ2mKboc8HizA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IJvow1ljNYM/TiUiq6+pfR1AbU7ZybsOg4kimQYVKaJp7yX2vl7uu6JLgaKz4lD8fVJteAQdwHfM63tK3DkGt4xGOZbKU1+jDGQrAH96NHr9ecJMt4qqgaEwRLxulvoeTsEXMvwzbh1k1j+I7v1RiGE3WJL6zSV0N+zb/io85NA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GSwtW9cb; 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="GSwtW9cb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5FA30C4CEDD; Thu, 27 Mar 2025 16:37:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743093477; bh=GWvb5O1mY9iqTkNQ/l5iwfDX0FTyE2KZ2mKboc8HizA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=GSwtW9cbpqNhrV56gT4c2bJwZ16aAw45M6EHOnr+72zIHMR89lblmPfQaZPFicMpP lBcMZvdJe+ZA/QVpwYY+U6nhJPOkPaopDe5A7CTzipJT23zwSnYptb4zJTZFmYEzC0 3MP8oFnMjhawvdVkdPC3G6npRHeq73ONYCll3GUw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52930: drm/i915: Fix potential bit_17 double-free Date: Thu, 27 Mar 2025 17:37:20 +0100 Message-ID: <2025032719-CVE-2023-52930-4bbc@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=2643; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GWvb5O1mY9iqTkNQ/l5iwfDX0FTyE2KZ2mKboc8HizA=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlP6/ZfF5bvllpxW63e847wt5THfkyfb1VyzvNb3BfS9 mLSucDvHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR/ncMC9YKM89Y/mrFxalf zpW6dgcUyatVmTPMM4qr7pfc/Th7ly7X0XftjxbslOdoBAA= 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 potential bit_17 double-free A userspace with multiple threads racing I915_GEM_SET_TILING to set the tiling to I915_TILING_NONE could trigger a double free of the bit_17 bitmask. (Or conversely leak memory on the transition to tiled.) Move allocation/free'ing of the bitmask within the section protected by the obj lock. [tursulin: Correct fixes tag and added cc stable.] (cherry picked from commit 10e0cbaaf1104f449d695c80bcacf930dcd3c42e) The Linux kernel CVE team has assigned CVE-2023-52930 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit 2850748ef8763ab46958e43a4d1c445f29eeb37d and fixed in 5.10.168 with commit b591abac78e25269b12e3d7170c99463f8c5cb02 Issue introduced in 5.5 with commit 2850748ef8763ab46958e43a4d1c445f29eeb37d and fixed in 5.15.93 with commit e3ebc3e23bd9028a8a9a26cbc5985f99be445f65 Issue introduced in 5.5 with commit 2850748ef8763ab46958e43a4d1c445f29eeb37d and fixed in 6.1.11 with commit 0769f997a7b6d5cb8336db0b4ec3d2d311b8097c Issue introduced in 5.5 with commit 2850748ef8763ab46958e43a4d1c445f29eeb37d and fixed in 6.2 with commit 7057a8f126f14f14b040faecfa220fd27c6c2f85 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-52930 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_tiling.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/b591abac78e25269b12e3d7170c99463f8c5cb02 https://git.kernel.org/stable/c/e3ebc3e23bd9028a8a9a26cbc5985f99be445f65 https://git.kernel.org/stable/c/0769f997a7b6d5cb8336db0b4ec3d2d311b8097c https://git.kernel.org/stable/c/7057a8f126f14f14b040faecfa220fd27c6c2f85