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 8CD371D416C for ; Tue, 30 Dec 2025 12:23:42 +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=1767097422; cv=none; b=NUtBOhzeINQpWS/T04YZxhu/u4d+x7AVS+2Hb1iLrCNh958BgQpv8GCZp7yYMvGhZc5HqZmfam2QEr1ENrpdsrqTZ/gtxAbWXGErcYl4g+xukDo30TzoEXGLym5eVNh+rlDkgnLSJzjO+XqOdXhL40dze1fwHDkz4YjU0b/VlQU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767097422; c=relaxed/simple; bh=cX00nnDZWY2DNeJo5yu7D9SqylXlrdZ+m8TuKDvm+UM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tcfEIeq7JZH7Cf2OwAdTehJua53UWDocaEXanbmU9kWDWV6LujpIAbfquINjvh20wMbw7vMSNmal0J3yYfQH1R+nO+8Idxgejc8iKzjrsVIYzu/apIzpl/LvNRFHlz5BQ0//oW8PwJUORFcdS0Frenokijc+Rk6wJ+JmvCrn7LE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=L4BFmqIC; 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="L4BFmqIC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1DF9C4CEFB; Tue, 30 Dec 2025 12:23:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767097422; bh=cX00nnDZWY2DNeJo5yu7D9SqylXlrdZ+m8TuKDvm+UM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=L4BFmqICvh1uVyjbnSDIjrD8XrVcZiVAYDEitOxJztjKxPx/8tvwuM2ftMIDWU/ex 2idnqfpy4ydm/TM7bIjTYrwUFhXlEsO3YtX7Hfn10xTn6Eh61XbXXM6WwgOI60XKjJ YHtGfqgN9iVtGNCTrLptf03sMkbroDfUod3v268U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50875: of: overlay: fix null pointer dereferencing in find_dup_cset_node_entry() and find_dup_cset_prop() Date: Tue, 30 Dec 2025 13:23:24 +0100 Message-ID: <2025123023-CVE-2022-50875-4def@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=2842; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pX4cJAhO6ZhNFzm1o4gMlXz+a6ZFOTDIW545wk8WZDI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBR6y/CWwubBRoWMx+uXhnRe45jU2t2d/zFotuigne+ y5+d51yRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwkfz/D/NIf31/X3WBRn1zg N/HV1oL50WcidBnmR188w+0nULO/f83k/J8JXHb+585uAwA= 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: fix null pointer dereferencing in find_dup_cset_node_entry() and find_dup_cset_prop() When kmalloc() fail to allocate memory in kasprintf(), fn_1 or fn_2 will be NULL, and strcmp() will cause null pointer dereference. The Linux kernel CVE team has assigned CVE-2022-50875 to this issue. Affected and fixed versions =========================== Issue introduced in 5.0 with commit 2fe0e8769df9fed5098daea7db933bc414c329d7 and fixed in 5.4.229 with commit 9ec5781879b4535ad59b5354b385825378e45618 Issue introduced in 5.0 with commit 2fe0e8769df9fed5098daea7db933bc414c329d7 and fixed in 5.10.163 with commit 2b4af99b44861646013821019dd13a4ac48c0219 Issue introduced in 5.0 with commit 2fe0e8769df9fed5098daea7db933bc414c329d7 and fixed in 5.15.86 with commit ce1b3a41e7964cb8dd56a702a95dd90ad27f51cd Issue introduced in 5.0 with commit 2fe0e8769df9fed5098daea7db933bc414c329d7 and fixed in 6.0.16 with commit ab5bb7bbacf531de8e32912cc2e21f906113cee8 Issue introduced in 5.0 with commit 2fe0e8769df9fed5098daea7db933bc414c329d7 and fixed in 6.1.2 with commit 71d88c7453ec3d2ceff98e18ce4d6354abd3b5b6 Issue introduced in 5.0 with commit 2fe0e8769df9fed5098daea7db933bc414c329d7 and fixed in 6.2 with commit ee9d7a0e754568180a2f8ebc4aad226278a9116f 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-2022-50875 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/9ec5781879b4535ad59b5354b385825378e45618 https://git.kernel.org/stable/c/2b4af99b44861646013821019dd13a4ac48c0219 https://git.kernel.org/stable/c/ce1b3a41e7964cb8dd56a702a95dd90ad27f51cd https://git.kernel.org/stable/c/ab5bb7bbacf531de8e32912cc2e21f906113cee8 https://git.kernel.org/stable/c/71d88c7453ec3d2ceff98e18ce4d6354abd3b5b6 https://git.kernel.org/stable/c/ee9d7a0e754568180a2f8ebc4aad226278a9116f