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 93C7F1F893D for ; Mon, 21 Oct 2024 18:08:26 +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=1729534106; cv=none; b=GiyR6DdEC76uAY1Ig49CY9DgCa1WLsS8AoiwVmgcoBZtIF6mO//78PLrblvDmVJld2Mh4ap8ZbOO9efEZ7iK3y8q8+Ol2FsW7n7/gckIHg1fYOrSNA0ElLzaN1PpEaOlVHvqxi7X0LX88eXzx9g/4oICc07DvMy1zq9t7uD13ow= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729534106; c=relaxed/simple; bh=rnv79zLqfV7Z+S1axYRt+ysUXyxpYT9hGl9s8e1MeSM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NqDSjFIh0ewph5tWRACKXaUcbL6mTyaTLbmkLF4kLVRGQpgzltN4wKgZXWJTYg6oqs5VBHKXS/3aQlY2DATVj4GBAgmR9gREq7JF3Nc+SJ/3zKo/HdMXObEVoctCMoGbqB4poRQ3U9h87FG2Fl71kEq+Z4Y0HvUV699j4CGV598= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CmsUDKLf; 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="CmsUDKLf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14947C4CEC3; Mon, 21 Oct 2024 18:08:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729534106; bh=rnv79zLqfV7Z+S1axYRt+ysUXyxpYT9hGl9s8e1MeSM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CmsUDKLfATVMfaMB4gK62WLVuG+OykGstIroLhSoIj35e5NZXZq8lXo1fdIn+63+f ZZVb3rNmQGorADltAfFYCueeIe2TP1ChOyTzvookgwE1eD2FXGrtQJ1ArGDXGkFA5G pAUzZuhRIeTVinxJh+y/w3Jfy7TfmF/a9qUpCjwo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-49992: drm/stm: Avoid use-after-free issues with crtc and plane Date: Mon, 21 Oct 2024 20:03:20 +0200 Message-ID: <2024102137-CVE-2024-49992-fd66@gregkh> X-Mailer: git-send-email 2.47.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=2372; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rnv79zLqfV7Z+S1axYRt+ysUXyxpYT9hGl9s8e1MeSM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOli05m+rpO4KTMrZcmtt5EOt2M+9c/y2n7x9/03zw5tu 2Qg8SMkuCOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmUjSNYX6SquduNa0jG6Ym 7xA7Uvr3uJjYve0MC1peTda/c7j2TpvUfvWTyjblV56rrQQA 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/stm: Avoid use-after-free issues with crtc and plane ltdc_load() calls functions drm_crtc_init_with_planes(), drm_universal_plane_init() and drm_encoder_init(). These functions should not be called with parameters allocated with devm_kzalloc() to avoid use-after-free issues [1]. Use allocations managed by the DRM framework. Found by Linux Verification Center (linuxtesting.org). [1] https://lore.kernel.org/lkml/u366i76e3qhh3ra5oxrtngjtm2u5lterkekcz6y2jkndhuxzli@diujon4h7qwb/ The Linux kernel CVE team has assigned CVE-2024-49992 to this issue. Affected and fixed versions =========================== Fixed in 6.1.113 with commit d02611ff0014 Fixed in 6.6.55 with commit 0a1741d10da2 Fixed in 6.10.14 with commit 454e5d7e6719 Fixed in 6.11.3 with commit b22eec4b57d0 Fixed in 6.12-rc1 with commit 19dd9780b7ac 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-49992 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/stm/drv.c drivers/gpu/drm/stm/ltdc.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/d02611ff001454358be6910cb926799e2d818716 https://git.kernel.org/stable/c/0a1741d10da29aa84955ef89ae9a03c4b6038657 https://git.kernel.org/stable/c/454e5d7e671946698af0f201e48469e5ddb42851 https://git.kernel.org/stable/c/b22eec4b57d04befa90e8554ede34e6c67257606 https://git.kernel.org/stable/c/19dd9780b7ac673be95bf6fd6892a184c9db611f