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 5317C2EFD81 for ; Tue, 9 Dec 2025 01:33:48 +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=1765244028; cv=none; b=UNPWbDcje2+CY7DZfQFPw2J/QvjTKc7MDBsMoi2IagGxGnRp2gNp2kxnAN5PuZm+HK71ed7bnrt/RKVA2Ov+hCBuWnbYpo+JQbhANd46kW5iB3EOqBXYlAhXWRiJj1VUwVCFR+tuMaoHIRcBaGV2qiWkSvzEeaueplcUTe/M9t0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765244028; c=relaxed/simple; bh=jciccWuPiD3MHx2c/2xzMyQyYK5+J7zYmZfuCtLyEEA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rO99ZR6k/GUPpyNvSkDeghzNTWpfAzpzDsf2KS53hBLDLMEl1eo5DOr9IUZUqv1NhQrQRkFFhorMLxK9QTAjG4LyNIkgAhS49CnZPSLzYsfMhYH+/C30nMuclKh24XJeXVv96ip992DaJE30lmh+xCN1jcGhslAtA8DzXU5r3N0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=M+gZJP75; 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="M+gZJP75" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1B15C4CEF1; Tue, 9 Dec 2025 01:33:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765244028; bh=jciccWuPiD3MHx2c/2xzMyQyYK5+J7zYmZfuCtLyEEA=; h=From:To:Cc:Subject:Date:Reply-To:From; b=M+gZJP75R6abERLnBjkJmxbH5wFy9VK27KfGABI+DbtqWNh2CS6tTbjFFLQp00K8U zKkPCg1UoIVElb2Asj6ebsLk0WRtRU0RVEw0CqyrzKaKY6Vnmd1h3Wj1A3vOzWa3Ul XwHds6V6b0VQYy0BN++AJqGA7h8+5AbRVK4ybULI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53856: of: overlay: Call of_changeset_init() early Date: Tue, 9 Dec 2025 10:31:40 +0900 Message-ID: <2025120903-CVE-2023-53856-ed42@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3068; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=h9r6LcOg6san/lpoCrIfLZujgoBaj8MJJg4pG71NGOM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnm1delWQPOlS0S6Pv3Jvr9HMdAbbFVabctvr1hmLBWk 5G3UXxHRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzknxXDXHnGFLWpBx3OFJ+0 Vtk3V+n8hsUTvBgWrPZ5XO+/9WfD/29tQsfSGXyfmLjcAwA= 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: of: overlay: Call of_changeset_init() early When of_overlay_fdt_apply() fails, the changeset may be partially applied, and the caller is still expected to call of_overlay_remove() to clean up this partial state. However, of_overlay_apply() calls of_resolve_phandles() before init_overlay_changeset(). Hence if the overlay fails to apply due to an unresolved symbol, the overlay_changeset.cset.entries list is still uninitialized, and cleanup will crash with a NULL-pointer dereference in overlay_removal_is_ok(). Fix this by moving the call to of_changeset_init() from init_overlay_changeset() to of_overlay_fdt_apply(), where all other early initialization is done. The Linux kernel CVE team has assigned CVE-2023-53856 to this issue. Affected and fixed versions =========================== Issue introduced in 4.15 with commit f948d6d8b792bb90041edc12eac35faf83030994 and fixed in 5.15.132 with commit 01bb96ad38089f5cc6de7746dac13437d35eb1dc Issue introduced in 4.15 with commit f948d6d8b792bb90041edc12eac35faf83030994 and fixed in 6.1.53 with commit 3fb210cd521c9efcb211e9f5ce40fc907200bf13 Issue introduced in 4.15 with commit f948d6d8b792bb90041edc12eac35faf83030994 and fixed in 6.4.16 with commit be86241bf5d1efd16d8a7231c13b33459c5d755d Issue introduced in 4.15 with commit f948d6d8b792bb90041edc12eac35faf83030994 and fixed in 6.5.3 with commit c403c81b577a67fe9ec6a2e89d143256487be50f Issue introduced in 4.15 with commit f948d6d8b792bb90041edc12eac35faf83030994 and fixed in 6.6 with commit a9515ff4fb142b690a0d2b58782b15903b990dba 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-53856 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/of/overlay.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/01bb96ad38089f5cc6de7746dac13437d35eb1dc https://git.kernel.org/stable/c/3fb210cd521c9efcb211e9f5ce40fc907200bf13 https://git.kernel.org/stable/c/be86241bf5d1efd16d8a7231c13b33459c5d755d https://git.kernel.org/stable/c/c403c81b577a67fe9ec6a2e89d143256487be50f https://git.kernel.org/stable/c/a9515ff4fb142b690a0d2b58782b15903b990dba