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 684382D3739 for ; Tue, 30 Dec 2025 12:12:07 +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=1767096727; cv=none; b=EgGSBz16HXrHRF1aELmjTnkLPKuX5jNlo9hRki485DSqvoIft7nRLAr4/Q7P8IRbdsawKSBdpje19bMrgRLAE0oLDs9w4BQIMRehtx7XO0JGSYUFciYqWrr3FlzBWOCu7QWwE0mYsQXhXzc7pNOYGVoEOVCBxNf54VZI3NCCHNA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096727; c=relaxed/simple; bh=LrT3enCj0uVoDy0376RsksvmBjw6B85COFsmmri+F2Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EPGJrUqu2NX30TP9BOZGvS5FcvBSlZapV0pUsqYnnV9VDxrrdac5i1LyJdblDjbalybVoFqqboNf+DXgVK8RgkaQN2XQmYSOGVhBwmZQ7mwgmsndc6Ds6uY1xZDnxdx3CQbBNiXLEFuLbZOzkbKwGqbT3csrLXCyC1dJmvUtMBg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bS0KIKEY; 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="bS0KIKEY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6FC3C4CEFB; Tue, 30 Dec 2025 12:12:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096727; bh=LrT3enCj0uVoDy0376RsksvmBjw6B85COFsmmri+F2Q=; h=From:To:Cc:Subject:Date:Reply-To:From; b=bS0KIKEYRlZwRpSvVzYj+Oki2X9QyRXRBZJeEXmieJ230jD8JVxVjo+56GdnhKfxO vtVjiQjI+2/m84DLo291Y9/VWvarhmVCgWVi5MY7A9kc6RoBzC8Va2/V02cS7ytO3v wZm6OkgGELD+AXygZMbq5v1fF85evqdnaEkEFbTM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54178: of: unittest: fix null pointer dereferencing in of_unittest_find_node_by_name() Date: Tue, 30 Dec 2025 13:09:46 +0100 Message-ID: <2025123023-CVE-2023-54178-bcb3@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=3521; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7skHuJexUeVIwNXDaDUHTB22Nezo3lf0GHj+K9+UcIM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBBz67bpcvrt3WV76sdN/8XQ9yvtrW9Srl3+L9/nXaW umHudJHO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiF6oY5mdPDj71cB/vltR/ Ag7XMlq2r164xIVhfmjoXtVoLgNpdtMVnL19Xm/C+eYvBQA= 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: unittest: fix null pointer dereferencing in of_unittest_find_node_by_name() when kmalloc() fail to allocate memory in kasprintf(), name or full_name will be NULL, strcmp() will cause null pointer dereference. The Linux kernel CVE team has assigned CVE-2023-54178 to this issue. Affected and fixed versions =========================== Issue introduced in 4.14 with commit 0d638a07d3a1e98a7598eb2812a6236324e4c55f and fixed in 4.14.326 with commit c364fa869b33ca42a263bf91c22fce7e6c61d479 Issue introduced in 4.14 with commit 0d638a07d3a1e98a7598eb2812a6236324e4c55f and fixed in 4.19.295 with commit 0b7d715511915a1b39f5fdcbe57a7922dfd66513 Issue introduced in 4.14 with commit 0d638a07d3a1e98a7598eb2812a6236324e4c55f and fixed in 5.4.257 with commit dadf0d0dfcc81cdcb27ba5426676d13a9e4fb925 Issue introduced in 4.14 with commit 0d638a07d3a1e98a7598eb2812a6236324e4c55f and fixed in 5.10.195 with commit f41c65f8d05be734898cbe72af59a401b97d298a Issue introduced in 4.14 with commit 0d638a07d3a1e98a7598eb2812a6236324e4c55f and fixed in 5.15.132 with commit ea5bc6f5aa099e3e84d037282836234ad77cba88 Issue introduced in 4.14 with commit 0d638a07d3a1e98a7598eb2812a6236324e4c55f and fixed in 6.1.53 with commit 43cc228099c514467b8074d7ede6673cef9f33b9 Issue introduced in 4.14 with commit 0d638a07d3a1e98a7598eb2812a6236324e4c55f and fixed in 6.4.16 with commit c74ae8124f9687062dd99858f34c9d027ddd73da Issue introduced in 4.14 with commit 0d638a07d3a1e98a7598eb2812a6236324e4c55f and fixed in 6.5.3 with commit 2dd8ee9de71ad8447f8459fb01dade7f6c7132da Issue introduced in 4.14 with commit 0d638a07d3a1e98a7598eb2812a6236324e4c55f and fixed in 6.6 with commit d6ce4f0ea19c32f10867ed93d8386924326ab474 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-54178 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/unittest.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/c364fa869b33ca42a263bf91c22fce7e6c61d479 https://git.kernel.org/stable/c/0b7d715511915a1b39f5fdcbe57a7922dfd66513 https://git.kernel.org/stable/c/dadf0d0dfcc81cdcb27ba5426676d13a9e4fb925 https://git.kernel.org/stable/c/f41c65f8d05be734898cbe72af59a401b97d298a https://git.kernel.org/stable/c/ea5bc6f5aa099e3e84d037282836234ad77cba88 https://git.kernel.org/stable/c/43cc228099c514467b8074d7ede6673cef9f33b9 https://git.kernel.org/stable/c/c74ae8124f9687062dd99858f34c9d027ddd73da https://git.kernel.org/stable/c/2dd8ee9de71ad8447f8459fb01dade7f6c7132da https://git.kernel.org/stable/c/d6ce4f0ea19c32f10867ed93d8386924326ab474