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 78D2D2E6122 for ; Wed, 1 Oct 2025 11:55:44 +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=1759319744; cv=none; b=X0b/R6O+nppss0N+eopzTB7EWg5hzymKbK6GJZcxYd8Xs7Sfhwr9AOmcAa8LZ11cgZjGdPj+lJHPF94CWTb2pbFfXfq9Ab5kxCUEeExHHTpz90Xz+P0IdaVZxBVQlRkK1+DponvjvTwqIQpxS+yQBMjXUTpQ3V2K0HSG7Xxb2T4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319744; c=relaxed/simple; bh=DGyK2JcOVOEnxUPtx5EwPKEtjZUQMEMWN0AJNQ0I9ns=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BJZF7hsaklHdULD8VIszn7kFOB+iDtMhR4dqxI7PYbjaes9J1JITbRctLHWBf+vc2CNQG8iNJdt2VjFYgrVAZlVv/1i55+/h8qpCNh8zyC1ye8ivqSppIAxT3A8dpmC6MAUWAUSXUsg/6cwfwk4TS1UlRX1dTuQwBDDp4qXv1Uo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IrSOYH6/; 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="IrSOYH6/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0877C4CEF4; Wed, 1 Oct 2025 11:55:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759319744; bh=DGyK2JcOVOEnxUPtx5EwPKEtjZUQMEMWN0AJNQ0I9ns=; h=From:To:Cc:Subject:Date:Reply-to:From; b=IrSOYH6/kknu0PISbOvkfGJLGYoAf3Kn6FRgkbzw3x5mku58kX+AfK6Ei0xaatlR6 rLPgJdtqBRG7OCoZpVHw35fBIPYTvJVddELRnam/4gWo0Lzpw52kXadOrtzhmSvV+Y 7F0WFJeX0gIvLVycyub79QETB4ZPax/zw/GdYq+c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50464: mt76: mt7915: Fix PCI device refcount leak in mt7915_pci_init_hif2() Date: Wed, 1 Oct 2025 13:45:34 +0200 Message-ID: <2025100121-CVE-2022-50464-3c96@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=2264; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=439V8Y2Xir4gXoBCLR9ezNAy4DZcYzUACuIEkDWf+MY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3RQKZWBjC5gVIr607dCqwvvlfb8DtK33P7bLXfCg7n sDQJ8PWEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNJc2SYH/t7+Tof92a7OWs/ paleulQz/1PmCYYFuzmTf5VdnSyq/eCoK//KwPKF0pprAA== 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: mt76: mt7915: Fix PCI device refcount leak in mt7915_pci_init_hif2() As comment of pci_get_device() says, it returns a pci_device with its refcount increased. We need to call pci_dev_put() to decrease the refcount. Save the return value of pci_get_device() and call pci_dev_put() to decrease the refcount. The Linux kernel CVE team has assigned CVE-2022-50464 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 9093cfff72e3e55b703ed38fa1af87c204d89cf1 and fixed in 6.0.16 with commit 8abc6579667129afd13ff2ccb0319ba3f46e6995 Issue introduced in 5.12 with commit 9093cfff72e3e55b703ed38fa1af87c204d89cf1 and fixed in 6.1.2 with commit 2d4b9c7e81f3a4df27749ebecb426b145e68be2a Issue introduced in 5.12 with commit 9093cfff72e3e55b703ed38fa1af87c204d89cf1 and fixed in 6.2 with commit 5938196cc188ba4323bc6357f5ac55127d715888 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-50464 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/net/wireless/mediatek/mt76/mt7915/pci.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/8abc6579667129afd13ff2ccb0319ba3f46e6995 https://git.kernel.org/stable/c/2d4b9c7e81f3a4df27749ebecb426b145e68be2a https://git.kernel.org/stable/c/5938196cc188ba4323bc6357f5ac55127d715888