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 77547316919 for ; Wed, 24 Dec 2025 10:57:23 +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=1766573843; cv=none; b=dEp/UK36xporFHvhmj1uX99ZTZg3pljxHfVd0s9wg0O/BYtEwNuDFCt0tvRIzBgzCDwMVk6ZOCmOUXCTj/0HurBY1Gldm4i8o6oCtBqBZ2wUiTazhG4t3TsanfADHIV7x+3wSJ4zN+PPx1sYTJdz9JngE55Z20LOGLgsPwlSQ/0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766573843; c=relaxed/simple; bh=at2GNHdwLCzFYxxIslACzBdAS5BlnVsJmZNvKbFbIlg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=a4S7Q8+yv8VERnBSomjzkKSkJRfDf0qHtpWuaXTPZahpAv/pTlaQdOJQJF3ZHTwzXVbavB5219injN0QU5eBA913N/kRBcFOVUYIXPJRNGaH/jSi7cX2rlNv/48hwbud3yPNYRS4hsUYHfsN2nIMJUFVcI7Kt5tXvCO9ReSjpOE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NAz7R/fE; 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="NAz7R/fE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFB01C4CEFB; Wed, 24 Dec 2025 10:57:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766573843; bh=at2GNHdwLCzFYxxIslACzBdAS5BlnVsJmZNvKbFbIlg=; h=From:To:Cc:Subject:Date:Reply-To:From; b=NAz7R/fEUty5gwEc0BIW5y6VQXrsQ30VucUKnbzj6m9IbPHvMwEFkwHc2LftTWcU+ M4WDckaDAx0Y/gAnLyb9BUfZnBTAn1fYSBgojc1dNlc13VJSMV79Wx2vYa0CBARcuL 6LdxW88LZUPDvIRX1G7Mdcm0yMBmSaIZedcd7o5o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50703: soc: qcom: smsm: Fix refcount leak bugs in qcom_smsm_probe() Date: Wed, 24 Dec 2025 11:56:20 +0100 Message-ID: <2025122419-CVE-2022-50703-1c22@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=3735; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=S4E5Pa7PPkH9aOKZhj7SG/w5H9D7/NJO3LZ2S71Vw1Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnexy5P4D7jtteuMTyhlDP5ZMl6RglpxrpbLLeKLivmy Cy6lnK6I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbiJ84wT/O9ahXLEn5Br/v+ hZdYs/5/OPp/AsM8y+1+96Plg9/77P54dtuBFiav/SzKAA== 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: soc: qcom: smsm: Fix refcount leak bugs in qcom_smsm_probe() There are two refcount leak bugs in qcom_smsm_probe(): (1) The 'local_node' is escaped out from for_each_child_of_node() as the break of iteration, we should call of_node_put() for it in error path or when it is not used anymore. (2) The 'node' is escaped out from for_each_available_child_of_node() as the 'goto', we should call of_node_put() for it in goto target. The Linux kernel CVE team has assigned CVE-2022-50703 to this issue. Affected and fixed versions =========================== Issue introduced in 4.5 with commit c97c4090ff72297a878a37715bd301624b71c885 and fixed in 4.9.331 with commit 1bbe75d466e5118b7d49ef4a346c3ce5742da4e8 Issue introduced in 4.5 with commit c97c4090ff72297a878a37715bd301624b71c885 and fixed in 4.14.296 with commit bd4666bf5562fe8e8e5e9bd6fc805d30e1767f43 Issue introduced in 4.5 with commit c97c4090ff72297a878a37715bd301624b71c885 and fixed in 4.19.262 with commit 42df28994eba7b56c762f7bbe7efd5611a1cd15b Issue introduced in 4.5 with commit c97c4090ff72297a878a37715bd301624b71c885 and fixed in 5.4.220 with commit 1e3ed59370c712df436791efed120f0c082aa9bc Issue introduced in 4.5 with commit c97c4090ff72297a878a37715bd301624b71c885 and fixed in 5.10.150 with commit 39781c98ad46b4e85053345dff797240c1ed7935 Issue introduced in 4.5 with commit c97c4090ff72297a878a37715bd301624b71c885 and fixed in 5.15.75 with commit 96e0028debdd07a6d582f0dfadf9a3ec2b5fffff Issue introduced in 4.5 with commit c97c4090ff72297a878a37715bd301624b71c885 and fixed in 5.19.17 with commit 8fb6112bd49c0e49f2cf51604231d85ff00284bb Issue introduced in 4.5 with commit c97c4090ff72297a878a37715bd301624b71c885 and fixed in 6.0.3 with commit ee7fc83ce0e6986ff9b1c1d7e994fbbf8d43861d Issue introduced in 4.5 with commit c97c4090ff72297a878a37715bd301624b71c885 and fixed in 6.1 with commit af8f6f39b8afd772fda4f8e61823ef8c021bf382 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-50703 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/soc/qcom/smsm.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/1bbe75d466e5118b7d49ef4a346c3ce5742da4e8 https://git.kernel.org/stable/c/bd4666bf5562fe8e8e5e9bd6fc805d30e1767f43 https://git.kernel.org/stable/c/42df28994eba7b56c762f7bbe7efd5611a1cd15b https://git.kernel.org/stable/c/1e3ed59370c712df436791efed120f0c082aa9bc https://git.kernel.org/stable/c/39781c98ad46b4e85053345dff797240c1ed7935 https://git.kernel.org/stable/c/96e0028debdd07a6d582f0dfadf9a3ec2b5fffff https://git.kernel.org/stable/c/8fb6112bd49c0e49f2cf51604231d85ff00284bb https://git.kernel.org/stable/c/ee7fc83ce0e6986ff9b1c1d7e994fbbf8d43861d https://git.kernel.org/stable/c/af8f6f39b8afd772fda4f8e61823ef8c021bf382