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 26ABF28C846 for ; Wed, 18 Jun 2025 11:11:07 +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=1750245067; cv=none; b=qvQkTmUi/IiLYQ9K0KOvN3fwM7+DUkwAf68ONVdUmgtE4X1sF8R3n3v9ZbTED6a/bHjaDxYnEzenXnw1xQ9V38hJ8OWNaY5d6dPl2hJx55sK5B+5vGgla77LjbSVjCYZ9gHob9Oweed0h2qZUU88ILP8zbJwQSA37BqQmy0J9ao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245067; c=relaxed/simple; bh=mAA4oz9Vtimdhi1ve98Xro+wYzgxsegarAZLOQ/K8M0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mzw0P/Z82PM+xIfBqovDY5430RG3P4YVpdgcgeowwta8K4jU0cpn7oyhDxgMaU12tRZNNsLJP0Vg2YUGqfnEbeESPLT1/2q3gMAo3pMvm9QmuoaoiM1R17lpV64GpsagZ22torkuDHMK4yJWlcCoxdBppsw9aIkTmvX02xXOoXQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=peOdgoSa; 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="peOdgoSa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BA69C4CEE7; Wed, 18 Jun 2025 11:11:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245067; bh=mAA4oz9Vtimdhi1ve98Xro+wYzgxsegarAZLOQ/K8M0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=peOdgoSaFUbGZV4lT31475YaXOdcNAwN006feiOTfNrblxmZe94/PD3vWJ7FtMEs4 GgjXPiIUtWdOhyn/7+FpVcFRYThjbWIRV9P/3Gm2sVE/9p1jn7lyNABsdEPa+Z5T2d MuAbuvXf20QMarp/AdVmDxlU2c4EA8QVl89K2pLk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50120: remoteproc: imx_rproc: Fix refcount leak in imx_rproc_addr_init Date: Wed, 18 Jun 2025 13:03:05 +0200 Message-ID: <2025061811-CVE-2022-50120-992d@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=2414; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2afj/r1IfZ4WGf9F3uXyhQbqGl2iQyMBDA0amDJh2/0=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc8rFmb456SmK5KoubRIULvqjGGi40v+9bCCPW/WB6 bbn963siGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIkccWZYsK/HiDVK9fRry7kF rDVJ/1aL6K7OZliw/msOa6x14B3Wxzzirmav91WvEjsFAA== 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: remoteproc: imx_rproc: Fix refcount leak in imx_rproc_addr_init of_parse_phandle() returns a node pointer with refcount incremented, we should use of_node_put() on it when not needed anymore. This function has two paths missing of_node_put(). The Linux kernel CVE team has assigned CVE-2022-50120 to this issue. Affected and fixed versions =========================== Issue introduced in 4.14 with commit a0ff4aa6f010801b2a61c203c6e09d01b110fddf and fixed in 5.15.61 with commit 0dc1663e3fc22c72e1ab33be7701a0d51cca84ef Issue introduced in 4.14 with commit a0ff4aa6f010801b2a61c203c6e09d01b110fddf and fixed in 5.18.18 with commit d8ac68927856c3a6d197a95be73c92ec0bd4b012 Issue introduced in 4.14 with commit a0ff4aa6f010801b2a61c203c6e09d01b110fddf and fixed in 5.19.2 with commit 16da9f84e26f89e58cac194ff19fefd9de27d975 Issue introduced in 4.14 with commit a0ff4aa6f010801b2a61c203c6e09d01b110fddf and fixed in 6.0 with commit 61afafe8b938bc74841cf4b1a73dd08b9d287c5a 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-50120 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/imx_rproc.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/0dc1663e3fc22c72e1ab33be7701a0d51cca84ef https://git.kernel.org/stable/c/d8ac68927856c3a6d197a95be73c92ec0bd4b012 https://git.kernel.org/stable/c/16da9f84e26f89e58cac194ff19fefd9de27d975 https://git.kernel.org/stable/c/61afafe8b938bc74841cf4b1a73dd08b9d287c5a