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 C4CAE1ACED9 for ; Wed, 26 Feb 2025 01:59:14 +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=1740535154; cv=none; b=S18rRBPI+3A1ixgLZlHyPBRBrpRO+eT+npzdvIxo/pT3n4tcYj/uSeSGEbp+g73Hm9K9dR4vnEDQA2mlqOM0UyUi7dLwQAcPLwQt/Bd4TiiKFIpVg6+zHfXogVT18IaxMCstkJCLqdsHC01H+K4QYSptSLKNa1XyMKs9ys5BB7g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535154; c=relaxed/simple; bh=hMb/YpYdgj+RaK0LrtYdIvyuCNANuxNAywuEMkige/o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=t/RpOcdzzMtdjEDubY5REjzk9WEgfeuUCDMwgohuBUopr2ljBG+JrAiviDVvnqzURlzaVwx+bmzBhJ+7SpySPVpaSLD/GVflHeIrt0dnCfCy2gYBI839+oUg9OKR7WS55asmbqNAvpaRv+mvKEB799nc6K+nwDyR1qe2Zv5fN6s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=W7w7Op5B; 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="W7w7Op5B" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CB9DC4CEDD; Wed, 26 Feb 2025 01:59:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535154; bh=hMb/YpYdgj+RaK0LrtYdIvyuCNANuxNAywuEMkige/o=; h=From:To:Cc:Subject:Date:Reply-to:From; b=W7w7Op5BDcyYxDO35a9DoEt42jlhKvQ9vfUsRmjEAjX1ecLw/1ndbxsOEvssMbvO8 Ah3SgKz/RUwCnVw66yaTldJtNBO26m14tGMCnpQ4m+LHjPmIjPdFmNELfOzOyPmDRE yiWbcZDRZ0ZDVM175yvM7qG5yr2bQGpEmvp8WfY8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49185: pinctrl: nomadik: Add missing of_node_put() in nmk_pinctrl_probe Date: Wed, 26 Feb 2025 02:56:30 +0100 Message-ID: <2025022615-CVE-2022-49185-119e@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=3533; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hMb/YpYdgj+RaK0LrtYdIvyuCNANuxNAywuEMkige/o=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7Stw9Z852fr31uY9w3soTjQ+4QpbtZzrm8F8qyt7Zf VPd7EfxHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRWWYM84yVFU43zncVzXu1 Y0f1494n27OM5zPM4br2adeyqUwaPlPeGt5z2LVV+6ynCQA= 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: pinctrl: nomadik: Add missing of_node_put() in nmk_pinctrl_probe This node pointer is returned by of_parse_phandle() with refcount incremented in this function. Calling of_node_put() to avoid the refcount leak. The Linux kernel CVE team has assigned CVE-2022-49185 to this issue. Affected and fixed versions =========================== Issue introduced in 3.9 with commit 32e67eee670e1254ee5ab41e2f454680acb9c17c and fixed in 4.9.311 with commit 59250d547542f1c7765a78dc97ddfe5e6b0d2ab0 Issue introduced in 3.9 with commit 32e67eee670e1254ee5ab41e2f454680acb9c17c and fixed in 4.14.276 with commit 0356d4b64a03d23daf99a2a29d7d7d91d6ec2ea8 Issue introduced in 3.9 with commit 32e67eee670e1254ee5ab41e2f454680acb9c17c and fixed in 4.19.238 with commit 0067ba448f1c29ca06e5aee00d8506889ed1f9d0 Issue introduced in 3.9 with commit 32e67eee670e1254ee5ab41e2f454680acb9c17c and fixed in 5.4.189 with commit bc1e29a35147c1ba6ea2b06a16cb0028f7c852d2 Issue introduced in 3.9 with commit 32e67eee670e1254ee5ab41e2f454680acb9c17c and fixed in 5.10.110 with commit 669b05ff43bd7ed684379c6e2006a6dad5127b71 Issue introduced in 3.9 with commit 32e67eee670e1254ee5ab41e2f454680acb9c17c and fixed in 5.15.33 with commit c52703355766c347f270df222a744e0c491a02f2 Issue introduced in 3.9 with commit 32e67eee670e1254ee5ab41e2f454680acb9c17c and fixed in 5.16.19 with commit 9511c6018cd772668def8b034bc67269847e591a Issue introduced in 3.9 with commit 32e67eee670e1254ee5ab41e2f454680acb9c17c and fixed in 5.17.2 with commit 62580a40c9bef3d8a90629c64dda381344b35ffd Issue introduced in 3.9 with commit 32e67eee670e1254ee5ab41e2f454680acb9c17c and fixed in 5.18 with commit c09ac191b1f97cfa06f394dbfd7a5db07986cefc 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-49185 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/pinctrl/nomadik/pinctrl-nomadik.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/59250d547542f1c7765a78dc97ddfe5e6b0d2ab0 https://git.kernel.org/stable/c/0356d4b64a03d23daf99a2a29d7d7d91d6ec2ea8 https://git.kernel.org/stable/c/0067ba448f1c29ca06e5aee00d8506889ed1f9d0 https://git.kernel.org/stable/c/bc1e29a35147c1ba6ea2b06a16cb0028f7c852d2 https://git.kernel.org/stable/c/669b05ff43bd7ed684379c6e2006a6dad5127b71 https://git.kernel.org/stable/c/c52703355766c347f270df222a744e0c491a02f2 https://git.kernel.org/stable/c/9511c6018cd772668def8b034bc67269847e591a https://git.kernel.org/stable/c/62580a40c9bef3d8a90629c64dda381344b35ffd https://git.kernel.org/stable/c/c09ac191b1f97cfa06f394dbfd7a5db07986cefc