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 220AD30F544 for ; Mon, 15 Sep 2025 14:04:06 +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=1757945047; cv=none; b=JN/ceQdaKU29vdBK6svRCyCFylcPb1FEMrOUnkCzDnpHPF/jjYTcme/twf70mk4IwVd/3XlyOreK28xNaMDq3Rv/2ypTnTCdzh36CrnMtlTF5E3ltUx3VtoQ6z4yEBIMhZJeIyyBPBjYQtdP+CtN8DrECYR0/JM9JimNqUT6qvU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757945047; c=relaxed/simple; bh=a7EcagyEDM3PimdetP1d2dk+JvLKaTHGjuqwAPEwdKQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AfFIHAWdb75E1nhonMsz2vkJzoeyd93up2oOP76ag03+Q1t7MqI7OqH5t2S2AcNpShdnCQniHHpoT+hwa+FdFMH1hYBHYGg+WgKig1vNpSVguVeH6DTIZk/exg37zmZfXaHk2PJKU9HGW3NVcKIDr5QnYBeyG++/ZG+EH+InMFY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NZfaMARU; 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="NZfaMARU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15AA6C4CEF1; Mon, 15 Sep 2025 14:04:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757945046; bh=a7EcagyEDM3PimdetP1d2dk+JvLKaTHGjuqwAPEwdKQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NZfaMARUww1UlPDCjyDF7vIk6ALhmYPPMpg/O6PbTgz9y8yUnxdq2/9RNdIm85COG xvUasHPc89fMOTwvbDca2x95mizQJ5NcRCEZrAq3puh5Z45ZIFBVpkq2DjeaCNCwMo y5XaLZLynsfzQUBK+COdYwgjjqP+YgwnzzFQA/gE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50247: usb: xhci-mtk: fix leakage of shared hcd when fail to set wakeup irq Date: Mon, 15 Sep 2025 16:01:55 +0200 Message-ID: <2025091549-CVE-2022-50247-1ab7@gregkh> X-Mailer: git-send-email 2.51.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=2365; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kFKs1+7ZxNnDBIwQ+5g27V4/fEK8EfjYUXlEs9O/h2o=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknZHyZlmXOMVppGRh1kkHORXT/oi3LSxfX5Gcsu9X3q nzDhDtyHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRqBqG+dXir1+smMlk8nf5 /jWbX0pe2TX18gaGufJnrvoEKi9TaN7Da1NQwTjDo/sCFwA= 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: xhci-mtk: fix leakage of shared hcd when fail to set wakeup irq Can not set the @shared_hcd to NULL before decrease the usage count by usb_put_hcd(), this will cause the shared hcd not released. The Linux kernel CVE team has assigned CVE-2022-50247 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 04284eb74e0c350be5e75eda178b97063343af13 and fixed in 5.15.86 with commit ffb14aac2658873050671198543b9b8194149c14 Issue introduced in 5.13 with commit 04284eb74e0c350be5e75eda178b97063343af13 and fixed in 6.0.16 with commit 05680a91ae60ddd0319e6618456f0883b5dd765d Issue introduced in 5.13 with commit 04284eb74e0c350be5e75eda178b97063343af13 and fixed in 6.1.2 with commit c8e7463844888dc8344bbb9cbad88cdce9cb8077 Issue introduced in 5.13 with commit 04284eb74e0c350be5e75eda178b97063343af13 and fixed in 6.2 with commit 03a88b0bafbe3f548729d970d8366f48718c9b19 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-50247 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/host/xhci-mtk.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/ffb14aac2658873050671198543b9b8194149c14 https://git.kernel.org/stable/c/05680a91ae60ddd0319e6618456f0883b5dd765d https://git.kernel.org/stable/c/c8e7463844888dc8344bbb9cbad88cdce9cb8077 https://git.kernel.org/stable/c/03a88b0bafbe3f548729d970d8366f48718c9b19