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 95A9716D4DC for ; Wed, 21 Aug 2024 06:13:51 +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=1724220831; cv=none; b=Om78/AFReXldUB07ivPLF+/mNvEBE89mBUGzFd8s+hfg1K3Y5FrgYC+M5hkqQo6tZ6Up9/B4JSx5JSaf4wshGA8b4H2X73Xy1dgHZEYX44h7miBVpjNmT+UNhjEWWLnIQjl04VahUS13CnsQPs9I5iFrkCqekSqt7j0ZCtiMwxw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724220831; c=relaxed/simple; bh=2M4MSW0LPa3X/BeF3MSo+qDyo+FEJdR86/Dpbm1z/zQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FPphZnBxuh+TAeNYvVgzgTNvNY10JRb3VPT1exe4u45gU6Ccb+TlTUGjk/TmkxZ73MsZhqyJwFNNJ/DctjHyCr8NkB3P5+I39p4TqUFBW92o8Df4kZ14rBPJNVuUg7YTX+CBxZ5jKJ3XvNXM8ck960Jww4QpOp6/sCdk6nuHcHM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VYEOvZFH; 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="VYEOvZFH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25461C32782; Wed, 21 Aug 2024 06:13:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724220831; bh=2M4MSW0LPa3X/BeF3MSo+qDyo+FEJdR86/Dpbm1z/zQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VYEOvZFHLJF/p53GLd1gKfz35KTJAnVPF91jK1N9x5xZ5eA3TMxP1OK3b3oFsypgh ch+o1zT1Xrm6mEi1J2qFLzYnUatVdARLhN1x4i57KKMW1dGDS8HTiUPWhpX6jIEVGs ItKwaRp6a1pWOy+AJ1RTUg5sQYRpZbY6U9swHaqA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48896: ixgbe: fix pci device refcount leak Date: Wed, 21 Aug 2024 14:11:30 +0800 Message-ID: <2024082110-CVE-2022-48896-7c80@gregkh> X-Mailer: git-send-email 2.46.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=2475; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2M4MSW0LPa3X/BeF3MSo+qDyo+FEJdR86/Dpbm1z/zQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlHW/5dPPjo0p5XT+2yTetvvPqXW/jpW03xrTPHHk5Zr rZoW1DXgo5YFgZBJgZZMUWWL9t4ju6vOKToZWh7GmYOKxPIEAYuTgGYSOJuhgVLj4ht5WVXZP7N yaPbmbr69Hy2jmCG+eVREzqWfFroMk3D6qTe7Nc6hf3ptQA= 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: ixgbe: fix pci device refcount leak As the comment of pci_get_domain_bus_and_slot() says, it returns a PCI device with refcount incremented, when finish using it, the caller must decrement the reference count by calling pci_dev_put(). In ixgbe_get_first_secondary_devfn() and ixgbe_x550em_a_has_mii(), pci_dev_put() is called to avoid leak. The Linux kernel CVE team has assigned CVE-2022-48896 to this issue. Affected and fixed versions =========================== Issue introduced in 5.0 with commit 8fa10ef01260 and fixed in 5.4.229 with commit 53cefa802f07 Issue introduced in 5.0 with commit 8fa10ef01260 and fixed in 5.10.164 with commit 112df4cd2b09 Issue introduced in 5.0 with commit 8fa10ef01260 and fixed in 5.15.89 with commit 4c93422a54cd Issue introduced in 5.0 with commit 8fa10ef01260 and fixed in 6.1.7 with commit c49996c6aa03 Issue introduced in 5.0 with commit 8fa10ef01260 and fixed in 6.2 with commit b93fb4405fcb 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-48896 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/ethernet/intel/ixgbe/ixgbe_phy.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/53cefa802f070d46c0c518f4865be2c749818a18 https://git.kernel.org/stable/c/112df4cd2b09acd64bcd18f5ef83ba5d07b34bf0 https://git.kernel.org/stable/c/4c93422a54cd6a349988f42e1c6bf082cf4ea9d8 https://git.kernel.org/stable/c/c49996c6aa03590e4ef5add8772cb6068d99fd59 https://git.kernel.org/stable/c/b93fb4405fcb5112c5739c5349afb52ec7f15c07