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 0DC4F21C166 for ; Wed, 26 Feb 2025 02:27:46 +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=1740536867; cv=none; b=bCoVsGGLPUPpb40hMDzOFXlxtw2Bqn/5uND+BZkR2Nf88xinxq9k3RRE9sYNzSik1sejBZZTpqXiD/iLQMUrC+aTtxlQJFKFwnCigjAVAWz1+Qxa2bWJMKiPPePeEuf0gfRpXsNy+01ERAG+qC+lfeBOaTkykR83ezYosi6z9kQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536867; c=relaxed/simple; bh=pKU9VHvgm35tGM4qh10HEFdRg6Th3+7PdO6i2m7qSCQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cJVk6iPAjV9Jt4RhpAj5k6uYc5Z0MIK2P4X8+eFoHHTF3c6Dh42j+2BEEkyD6F+Vw54Ff3+qo2KxCgwbpvEDTA/Bb2DmXsHOZtTx78FZ7FDzmuzkaV2Bre5YHifGdm/V7WtWMUqO0tvAs2RczYdKyWGcD4wJzUHMImR+99Gd+KA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uqqN4SLG; 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="uqqN4SLG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7EA0AC4CEDD; Wed, 26 Feb 2025 02:27:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536866; bh=pKU9VHvgm35tGM4qh10HEFdRg6Th3+7PdO6i2m7qSCQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=uqqN4SLGbZppoZC7EVGAJOjzNUl5EazBwxpw5KQVt+hbuHERNSCH3oG5R4zKfVITX wDBRUIZUXLSyZ1/i+xyG2ydz4ucnyFCTF9xuM5tLQbkLZyNhWUn/9OwMd+3wm5EM9+ 4OYb8l/Zmy2Bg7IEItp1lfMtuBrMcx63wjPFIMds= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49712: usb: gadget: lpc32xx_udc: Fix refcount leak in lpc32xx_udc_probe Date: Wed, 26 Feb 2025 03:24:35 +0100 Message-ID: <2025022631-CVE-2022-49712-a800@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=3370; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pKU9VHvgm35tGM4qh10HEFdRg6Th3+7PdO6i2m7qSCQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qp5HhrxKvNfrKtAqqRC565n1MZ1HF5e+vzXv4WGd1 dn7fLN2d8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEDl9gmO+5u0BgupjNpo9h ipO7v8xa6T+5V4hhrlxFjEiWTtOflY/kMsJMm2Z+Y/WTBAA= 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: usb: gadget: lpc32xx_udc: Fix refcount leak in lpc32xx_udc_probe of_parse_phandle() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak. of_node_put() will check NULL pointer. The Linux kernel CVE team has assigned CVE-2022-49712 to this issue. Affected and fixed versions =========================== Issue introduced in 3.5 with commit 24a28e4283510dcd58890379a42b8a7d3201d9d3 and fixed in 4.9.320 with commit d85e4e6284a91aa2d1ab004e9d84b9c09b4aa203 Issue introduced in 3.5 with commit 24a28e4283510dcd58890379a42b8a7d3201d9d3 and fixed in 4.14.285 with commit 0ef6917c0524da5b88496b9706628ffef108b9bb Issue introduced in 3.5 with commit 24a28e4283510dcd58890379a42b8a7d3201d9d3 and fixed in 4.19.249 with commit 2a598da14856ead80c726b38ba426c68637d9211 Issue introduced in 3.5 with commit 24a28e4283510dcd58890379a42b8a7d3201d9d3 and fixed in 5.4.200 with commit b75bddfcc18170ce8e3fb695a76ec2dec4ce0ea5 Issue introduced in 3.5 with commit 24a28e4283510dcd58890379a42b8a7d3201d9d3 and fixed in 5.10.124 with commit 57901c658f77d9ea2e772f35cb38e47efb54c558 Issue introduced in 3.5 with commit 24a28e4283510dcd58890379a42b8a7d3201d9d3 and fixed in 5.15.49 with commit 46da1e4a8b6329479433b2a4056941dfdd7f3efd Issue introduced in 3.5 with commit 24a28e4283510dcd58890379a42b8a7d3201d9d3 and fixed in 5.18.6 with commit 727c82d003e0ec64411fd1257a9a57de4ad7a99a Issue introduced in 3.5 with commit 24a28e4283510dcd58890379a42b8a7d3201d9d3 and fixed in 5.19 with commit 4757c9ade34178b351580133771f510b5ffcf9c8 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-49712 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/usb/gadget/udc/lpc32xx_udc.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/d85e4e6284a91aa2d1ab004e9d84b9c09b4aa203 https://git.kernel.org/stable/c/0ef6917c0524da5b88496b9706628ffef108b9bb https://git.kernel.org/stable/c/2a598da14856ead80c726b38ba426c68637d9211 https://git.kernel.org/stable/c/b75bddfcc18170ce8e3fb695a76ec2dec4ce0ea5 https://git.kernel.org/stable/c/57901c658f77d9ea2e772f35cb38e47efb54c558 https://git.kernel.org/stable/c/46da1e4a8b6329479433b2a4056941dfdd7f3efd https://git.kernel.org/stable/c/727c82d003e0ec64411fd1257a9a57de4ad7a99a https://git.kernel.org/stable/c/4757c9ade34178b351580133771f510b5ffcf9c8