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 A69FB28B7C7 for ; Wed, 18 Jun 2025 11:10:38 +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=1750245038; cv=none; b=gPgay0uBEj8+oiADomXe+6Js2w6gw0Ht/26gdAMhB4y7s2gkO4NcKUmhznPVCSCYmAO05UTnuskIdpdZjQilhMnRADj/VtDZLJvWrpawVxRV1X/Vr05/ZRY11jAaPAxMBIK/ankgYyZZHe2qF6fiEOIPG2pInw6bRjavfI2EVtU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245038; c=relaxed/simple; bh=FVNnNCCzFHizGvhf6LPyJ1Y3C1UHgm2PT+8XtpjK1D4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=N6Gy6ElULmW35mTIfegKnearVazhU/sBCq48R+tBHB1F8fyIbi7cnf5VKP9OkioMrM8Q8o+KaDmAVrMMNrJkdIVo73/NiNxQyrWiZsmWE+KNlJPIkREpFASvvmB0fqDwE6/Jmf6VIagkfg4g9SJCKwAQpd95ZJqZUBMIaioPBLE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Rr73sv+U; 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="Rr73sv+U" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17E90C4CEE7; Wed, 18 Jun 2025 11:10:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245038; bh=FVNnNCCzFHizGvhf6LPyJ1Y3C1UHgm2PT+8XtpjK1D4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Rr73sv+URLzpMqyDaTBEiZQklf3OKHj0B2NEcyOCm4/P5pPCX3k6iOZHIr4S00F0i q9ulJZZU50SKBRGFtyR7rPRVK1qvDBC5HXOFi5QH9GnNivaOTWoA4VP8WwFckECDFh A2n9Q48lbX4cVjduQGmAQBmlZib3VLcKZAtM4L70= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50112: rpmsg: qcom_smd: Fix refcount leak in qcom_smd_parse_edge Date: Wed, 18 Jun 2025 13:02:57 +0200 Message-ID: <2025061808-CVE-2022-50112-e37e@gregkh> X-Mailer: git-send-email 2.49.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=3018; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bpsP0BP80lBqUQGaww3yFbU7lka5o1HuEvIY7IQpTJk=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc0rc9E4tLAtZLHbER0H3re2xjB/nD/IqCmd7Ta8Q0 dDfyj+hI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbSHMSwYIOUU7aSRxzDtr1T 9MNbjEpY/34NY5grE7WiLN7bt0n43HnG1mttd+eJfTwOAA== 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: rpmsg: qcom_smd: Fix refcount leak in qcom_smd_parse_edge of_parse_phandle() returns a node pointer with refcount incremented, we should use of_node_put() on it when done. The Linux kernel CVE team has assigned CVE-2022-50112 to this issue. Affected and fixed versions =========================== Issue introduced in 4.9 with commit 53e2822e56c7bc67e5dc19acb1e5fbb8ebff8614 and fixed in 4.19.256 with commit cb50423e46ea585620a6be307d7f7b71587936b7 Issue introduced in 4.9 with commit 53e2822e56c7bc67e5dc19acb1e5fbb8ebff8614 and fixed in 5.4.211 with commit 8ee5d40ae29e63f6fd6cbf9dcfc0a48c474013db Issue introduced in 4.9 with commit 53e2822e56c7bc67e5dc19acb1e5fbb8ebff8614 and fixed in 5.10.137 with commit 9715809b9eeb85b3f9b083857a2f29a9e2351125 Issue introduced in 4.9 with commit 53e2822e56c7bc67e5dc19acb1e5fbb8ebff8614 and fixed in 5.15.61 with commit ece6cfe62a103cc6032664983be557f1b5a1ff7e Issue introduced in 4.9 with commit 53e2822e56c7bc67e5dc19acb1e5fbb8ebff8614 and fixed in 5.18.18 with commit ae7fdbab97df6a2115eed6b7e39c278b805c9c7d Issue introduced in 4.9 with commit 53e2822e56c7bc67e5dc19acb1e5fbb8ebff8614 and fixed in 5.19.2 with commit 43e42c25a232a6862e7d2f292a069ac828559030 Issue introduced in 4.9 with commit 53e2822e56c7bc67e5dc19acb1e5fbb8ebff8614 and fixed in 6.0 with commit 65382585f067d4256ba087934f30f85c9b6984de 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-50112 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/rpmsg/qcom_smd.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/cb50423e46ea585620a6be307d7f7b71587936b7 https://git.kernel.org/stable/c/8ee5d40ae29e63f6fd6cbf9dcfc0a48c474013db https://git.kernel.org/stable/c/9715809b9eeb85b3f9b083857a2f29a9e2351125 https://git.kernel.org/stable/c/ece6cfe62a103cc6032664983be557f1b5a1ff7e https://git.kernel.org/stable/c/ae7fdbab97df6a2115eed6b7e39c278b805c9c7d https://git.kernel.org/stable/c/43e42c25a232a6862e7d2f292a069ac828559030 https://git.kernel.org/stable/c/65382585f067d4256ba087934f30f85c9b6984de