From mboxrd@z Thu Jan 1 00:00:00 1970 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 AE8612459DB for ; Wed, 15 Jan 2025 13:06:54 +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=1736946414; cv=none; b=qvnbjji/VeGFkUrDziM/3fImUJiYpmmre7mjc8xF6A4L9BjMnhnwrFcEupoW7UoOTAblAKQBWnJ9BXwT30W+Xn5ULmxgHAENetPzkfhOGPZcBnLVSEFZaV+WCh3zZUpJE54vH3VrUQw0JaHxSCaoeIa6xjv3IWQLXAZtA5rcEJk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736946414; c=relaxed/simple; bh=LcKBgz16DT6Lk8Vp6SGvJ9kVR8grGp5GlY2UXwX9K4c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Ezwr3Qx0KsNtKcfb9uM4uecEElxqHhe+/e0KQLW1bzcxHQ4/3SODLiVyw2DA98MDT1JQKZ1LfjSMhmTYaHg75A6/AJ7KiFtXczhxo05n2v/tybY8pwXj6UAjmGzqU7HLm11nB2zUWtx6BAPLsuhaJZhyxYBJ2Gj8YUReVswTnVI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mGJmHNYM; 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="mGJmHNYM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF21DC4CEE4; Wed, 15 Jan 2025 13:06:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736946414; bh=LcKBgz16DT6Lk8Vp6SGvJ9kVR8grGp5GlY2UXwX9K4c=; h=From:To:Cc:Subject:Date:Reply-to:From; b=mGJmHNYMSWYO6tZ41mOMnCVij9/Q1CVCfpB1Vj+y+L2BFuM2FNa3I2monbQNUGXnJ +XYbHBjbf+aQhE1qAC/8R4RDmHDb4dJPiqpPZyhlg1pbZ3XzoohyrWp/2KgaYnDf8z 5nBF7T+c7uNvQXiC6pqnzZ8jBkCjEp8xv7cfy7Og= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-57887: drm: adv7511: Fix use-after-free in adv7533_attach_dsi() Date: Wed, 15 Jan 2025 14:06:10 +0100 Message-ID: <2025011511-CVE-2024-57887-db31@gregkh> X-Mailer: git-send-email 2.48.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=2329; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=LcKBgz16DT6Lk8Vp6SGvJ9kVR8grGp5GlY2UXwX9K4c=; b=owGbwMvMwCRo6H6F97bub03G02pJDOntmw6vkZKey7Vww+24TYKPXvrs9LHZrX7v5JP2i58/9 PGvfOk/pSOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmss2BYX5tIm+NXKPAHvOt 9dsSBZnOp7FqLWKYn79SnmG3wvEVu2/GZR68sT55y+aSYwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: drm: adv7511: Fix use-after-free in adv7533_attach_dsi() The host_node pointer was assigned and freed in adv7533_parse_dt(), and later, adv7533_attach_dsi() uses the same. Fix this use-after-free issue by dropping of_node_put() in adv7533_parse_dt() and calling of_node_put() in error path of probe() and also in the remove(). The Linux kernel CVE team has assigned CVE-2024-57887 to this issue. Affected and fixed versions =========================== Issue introduced in 4.8 with commit 1e4d58cd7f888522d16f221d628356befbb08468 and fixed in 6.6.70 with commit 1f49aaf55652580ae63ab83d67211fe6a55d83dc Issue introduced in 4.8 with commit 1e4d58cd7f888522d16f221d628356befbb08468 and fixed in 6.12.9 with commit ca9d077350fa21897de8bf64cba23b198740aab5 Issue introduced in 4.8 with commit 1e4d58cd7f888522d16f221d628356befbb08468 and fixed in 6.13-rc6 with commit 81adbd3ff21c1182e06aa02c6be0bfd9ea02d8e8 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-57887 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/bridge/adv7511/adv7511_drv.c drivers/gpu/drm/bridge/adv7511/adv7533.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/1f49aaf55652580ae63ab83d67211fe6a55d83dc https://git.kernel.org/stable/c/ca9d077350fa21897de8bf64cba23b198740aab5 https://git.kernel.org/stable/c/81adbd3ff21c1182e06aa02c6be0bfd9ea02d8e8