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 29D1D291C38 for ; Wed, 18 Jun 2025 11:13:58 +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=1750245238; cv=none; b=hgGuR1u3yRaAE/Gj2va0afiii0m3sDXUtuXiSuYiaPlpplrcFo3Cp/cLgQvl9boU965VtfoOnNbmzI1X6bX3I5dxUayRDcy2j1vlS2Szu+UQyLzPOoPPqfaIOQTDGrQa2Ce9NZjT3pgs3k2kVRCrZmf2+lR+S6xAWs+PSRFaeWI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245238; c=relaxed/simple; bh=UWaPogVxKLQQ6Vr60o/58uEx7IVnbO+oKj+It0ad5dA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rtxJfN35LHJNg906U+NDA0d4/x3oAJ45Dm6uCW9UWexQs2Qh25LGLLFTY4LOgeyOzutaGSden1/IWQTOxRYJEIhUC8w5OWFUClplMMQqiqR6k0qL1g7uDtx0hwMwfs7oD0uP2diMTCnX1w+XksPDTuqqECRr/LYFGv1yT5TRigY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IbhhQtFJ; 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="IbhhQtFJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5792C4CEE7; Wed, 18 Jun 2025 11:13:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245238; bh=UWaPogVxKLQQ6Vr60o/58uEx7IVnbO+oKj+It0ad5dA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=IbhhQtFJ2cXEPhSopXOewInjw7Ew8U7QoiLRXEEBpZkoKAiRmfcTTckPOrlE92Lck ribqpI0zyihdd6CfAAyHIWAiqqXGxx9fUni/VA634h2hBq6kfp2cOuSEbZtxpIzfC9 qsFjkRbRRZLuGepxrAKaUfmJydYT1bfnVsUCFr5s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50139: usb: aspeed-vhub: Fix refcount leak bug in ast_vhub_init_desc() Date: Wed, 18 Jun 2025 13:03:24 +0200 Message-ID: <2025061817-CVE-2022-50139-658f@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=2585; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=G3AJQrh1BnFMIMTk+q3272MTK/lJocRy2RjEeEh+gsQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc+p+PQ7pbTp9Sva1Qpy27mwN75PvhS5Ed+cdn9Q8N TIqeXVNRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk1HOGuTItPBe4Y2+nGT/d Zrfi2BSNJ6uFDzHMd/rSeHDNLoUeo+QTnPEGN2SMVJn7AQ== 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: usb: aspeed-vhub: Fix refcount leak bug in ast_vhub_init_desc() We should call of_node_put() for the reference returned by of_get_child_by_name() which has increased the refcount. The Linux kernel CVE team has assigned CVE-2022-50139 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit 30d2617fd7ed052c30d1c21ddd4af4703d922be8 and fixed in 5.10.137 with commit e6db5780c2bf6e23be7b315809ef349b4b4f2213 Issue introduced in 5.8 with commit 30d2617fd7ed052c30d1c21ddd4af4703d922be8 and fixed in 5.15.61 with commit 4070f3c83cd28267f469a59751480ad39435f26a Issue introduced in 5.8 with commit 30d2617fd7ed052c30d1c21ddd4af4703d922be8 and fixed in 5.18.18 with commit 0e0a40c803643f4edc30f0660f2f3bea4d57a99a Issue introduced in 5.8 with commit 30d2617fd7ed052c30d1c21ddd4af4703d922be8 and fixed in 5.19.2 with commit 3503305225ca24c3229414c769323fb8bf39b4bf Issue introduced in 5.8 with commit 30d2617fd7ed052c30d1c21ddd4af4703d922be8 and fixed in 6.0 with commit 220fafb4ed04187e9c17be4152da5a7f2ffbdd8c 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-50139 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/aspeed-vhub/hub.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/e6db5780c2bf6e23be7b315809ef349b4b4f2213 https://git.kernel.org/stable/c/4070f3c83cd28267f469a59751480ad39435f26a https://git.kernel.org/stable/c/0e0a40c803643f4edc30f0660f2f3bea4d57a99a https://git.kernel.org/stable/c/3503305225ca24c3229414c769323fb8bf39b4bf https://git.kernel.org/stable/c/220fafb4ed04187e9c17be4152da5a7f2ffbdd8c