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 313A220332 for ; Thu, 29 Feb 2024 22:38:04 +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=1709246284; cv=none; b=uR2kEFMjH5VdMqXp3pgPmzZ1mzrlzvrAwdjCACOis4tiVClH21it15O8JPwtw0PNTNINXvgfxbVYsnAtw42nAzmD132XMpZkcBuJl8euA0Tam6GNt7eheQRDAVPGCaJE8hCFrEvI75qf+gLTwt++oyk6KYnvhCil8suVnQdEwsw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709246284; c=relaxed/simple; bh=JhjKXPPvF2xD4tlYq8KQTvCx2trSIxoOXw/8Xtt+4Nk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=E8EZ3j5gtSo1IWDv/gIjiXHCg6A0lDqFNSaj+cRMNZJZ2Nbia9tVaWwSbkgP2s3ZBsYZX3o3MRoNiyf4cCjczGcV2/+ORDoBklumXULqU9uqrCsnrtAkozhtC0SuKStd7+CkOBLPz1I7BIy6DW287pzmeNiTkeFsbP8GUBw7w1g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DrNgocpd; 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="DrNgocpd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82FCCC433C7; Thu, 29 Feb 2024 22:38:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709246284; bh=JhjKXPPvF2xD4tlYq8KQTvCx2trSIxoOXw/8Xtt+4Nk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=DrNgocpdxJYIsn59JU8VNzSMtPdU5NFMESD0eGhd//ezZxIVL1sa2haWGIzYjAcxu 9mqA8X2FeHfk1RzLOvwhS3lV6p9S9Ap5oiaC6AKF4PNvoZB32gg2qvRWTgj+AZEa6H 1/fNK3X017cvVMCIOYHPnqMDAid3C+DL2BTV7Qbw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47054: bus: qcom: Put child node before return Date: Thu, 29 Feb 2024 23:37:51 +0100 Message-ID: <2024022950-CVE-2021-47054-c994@gregkh> X-Mailer: git-send-email 2.44.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=2939; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JhjKXPPvF2xD4tlYq8KQTvCx2trSIxoOXw/8Xtt+4Nk=; b=owGbwMvMwCRo6H6F97bub03G02pJDKkP2e2YWrl9Lu3QcOeJczumfS7Quj9UqebzwYlJoU9da 7acuPy8I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZSeJ5hftk750AHnjNi/gnf i/q5F+kx3mvzYJjvqFKnvoh7jntR1cuclc/O1+V/uG8CAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: bus: qcom: Put child node before return Put child node before return to fix potential reference count leak. Generally, the reference count of child is incremented and decremented automatically in the macro for_each_available_child_of_node() and should be decremented manually if the loop is broken in loop body. The Linux kernel CVE team has assigned CVE-2021-47054 to this issue. Affected and fixed versions =========================== Issue introduced in 4.9 with commit 335a12754808 and fixed in 4.9.269 with commit a6191e91c10e Issue introduced in 4.9 with commit 335a12754808 and fixed in 4.14.233 with commit 94810fc52925 Issue introduced in 4.9 with commit 335a12754808 and fixed in 4.19.191 with commit a399dd80e697 Issue introduced in 4.9 with commit 335a12754808 and fixed in 5.4.119 with commit 3a76ec28824c Issue introduced in 4.9 with commit 335a12754808 and fixed in 5.10.37 with commit 00f6abd3509b Issue introduced in 4.9 with commit 335a12754808 and fixed in 5.11.21 with commit 6b68c03dfc79 Issue introduced in 4.9 with commit 335a12754808 and fixed in 5.12.4 with commit c6f8e0dc8da1 Issue introduced in 4.9 with commit 335a12754808 and fixed in 5.13 with commit ac6ad7c2a862 Please see https://www.kernel.org or 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-2021-47054 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/bus/qcom-ebi2.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/a6191e91c10e50bd51db65a00e03d02b6b0cf8c4 https://git.kernel.org/stable/c/94810fc52925eb122a922df7f9966cf3f4ba7391 https://git.kernel.org/stable/c/a399dd80e697a02cfb23e2fc09b87849994043d9 https://git.kernel.org/stable/c/3a76ec28824c01b57aa1f0927841d75e4f167cb8 https://git.kernel.org/stable/c/00f6abd3509b1d70d0ab0fbe65ce5685cebed8be https://git.kernel.org/stable/c/6b68c03dfc79cd95a58dfd03f91f6e82829a1b0c https://git.kernel.org/stable/c/c6f8e0dc8da1cd78d640dee392071cc2326ec1b2 https://git.kernel.org/stable/c/ac6ad7c2a862d682bb584a4bc904d89fa7721af8