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 8A09A19CC02 for ; Wed, 26 Feb 2025 01:59:17 +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=1740535157; cv=none; b=u8DQQqJ7k6c3o0sPSptZDp3aowPV7OXYYUEmPahmHLB6SXusqo7L0CSJ4NvpyQ/y7cXUsjYT4dIAZil7vGOvLPZvSl/AxDQuNok4ZhX8G6CpRlwtPf/9WNjhyOhmlHy3tlf6fw1DXsjnkW+sQnn6s+m//p7Lgfct0ymRGYOdc2A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535157; c=relaxed/simple; bh=Vl27jV7IubljRQ76C6L1LIaq07ULxUVrwbU74nl6+5o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cmlWuxkqu5pcj0jWa6qA4T+7OvVjj4HYwInzmlbUGpzqyxGydnvnW0vwKyw+6AgguWuYoK+mpWItGTd8yixiMFe+nCBlacYBZKGaAgcx6O5r5WbTucfNmVOUSqLAKND5oDIbkRmM/PyTX77z8jLJfq5pV5HKnNURtZB5cg9ypXY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nVTb5bph; 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="nVTb5bph" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5FCE5C4CEDD; Wed, 26 Feb 2025 01:59:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535157; bh=Vl27jV7IubljRQ76C6L1LIaq07ULxUVrwbU74nl6+5o=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nVTb5bphAx/bzvOxzNe2y1qPgRN+tC0vJrACWQF3LaM4cj4TBle5TnfxkeQp9+Ebk MqBKU9YzRi51A1n8xY6QrZ6xq6ZgEgvrvfL5h0XK9y3BbWSUd0B/6Z7q8kAKtnO11/ yhKbWNtNbFeOI5gl8AEmeOW7xzs+O2+ROKUO47Bo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49188: remoteproc: qcom_q6v5_mss: Fix some leaks in q6v5_alloc_memory_region Date: Wed, 26 Feb 2025 02:56:33 +0100 Message-ID: <2025022615-CVE-2022-49188-2a10@gregkh> X-Mailer: git-send-email 2.48.1 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=2732; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Vl27jV7IubljRQ76C6L1LIaq07ULxUVrwbU74nl6+5o=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7StzPCnhOmFrq3lUjeq8rKfrKqj8/Jz3+/3zGzO6kM xw5zyTndcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE+sIZ5uktm72EQVCd82JV f3DJo3zOv3vypjEs2HEp6f/Kw9JOzuUL+G9WT3qxzcToGAA= 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: remoteproc: qcom_q6v5_mss: Fix some leaks in q6v5_alloc_memory_region The device_node pointer is returned by of_parse_phandle() or of_get_child_by_name() with refcount incremented. We should use of_node_put() on it when done. This function only call of_node_put(node) when of_address_to_resource succeeds, missing error cases. The Linux kernel CVE team has assigned CVE-2022-49188 to this issue. Affected and fixed versions =========================== Issue introduced in 4.8 with commit 051fb70fd4ea40fbc7139186a4890b2fe5cb1e76 and fixed in 5.10.110 with commit f7210ca29a783c94478da02368731e4c9cf7cdb7 Issue introduced in 4.8 with commit 051fb70fd4ea40fbc7139186a4890b2fe5cb1e76 and fixed in 5.15.33 with commit bd4771ba2cf9e18473a42b5b70175e50d67a64bb Issue introduced in 4.8 with commit 051fb70fd4ea40fbc7139186a4890b2fe5cb1e76 and fixed in 5.16.19 with commit a7d988735e757e111f9722de7cf1b40a84a48b1f Issue introduced in 4.8 with commit 051fb70fd4ea40fbc7139186a4890b2fe5cb1e76 and fixed in 5.17.2 with commit b9df3007b3cda4936cc50f5a7d2d30505a652828 Issue introduced in 4.8 with commit 051fb70fd4ea40fbc7139186a4890b2fe5cb1e76 and fixed in 5.18 with commit 07a5dcc4bed9d7cae54adf5aa10ff9f037a3204b 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-49188 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/remoteproc/qcom_q6v5_mss.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/f7210ca29a783c94478da02368731e4c9cf7cdb7 https://git.kernel.org/stable/c/bd4771ba2cf9e18473a42b5b70175e50d67a64bb https://git.kernel.org/stable/c/a7d988735e757e111f9722de7cf1b40a84a48b1f https://git.kernel.org/stable/c/b9df3007b3cda4936cc50f5a7d2d30505a652828 https://git.kernel.org/stable/c/07a5dcc4bed9d7cae54adf5aa10ff9f037a3204b