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 164EE334C02 for ; Wed, 24 Dec 2025 12:28:14 +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=1766579294; cv=none; b=IvcjSVRQb+gc8/ZmsoSgc/OXjC/hXxQUDlv5yXofkjVOgSP0REHykOYazBokyZXz8JDYUoYMNbGa5uztoX5zfAKG5uNUZ2nGWXte82Vuj9gLND8f5V+GOPa3iS5i/NbSrWWnWVsBptAULrQ+cZrJteNt7M6lgIRt+uroJVW+RX0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766579294; c=relaxed/simple; bh=4Efc5t4lZbGb37orZjtvVjgPD13cY8G5Vzm3UBArsm4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UQouAAX+gbhGaJgFjF4LLLgja4uyihlk2RCPSKkX7odMhJWqPHk6CZigB8vhsooq9ZhveUl8gy/uwJ0DObgv4ReNjxddSB8U2P2dnxCkS1+tqRIJ94e7LMog5tW9DwmkRO7Qmyrzjx+DWd2mfXY0jmSz0DTAvqeaq0oPX98Eqvs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hCr2Mjlt; 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="hCr2Mjlt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9636AC4CEFB; Wed, 24 Dec 2025 12:28:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766579294; bh=4Efc5t4lZbGb37orZjtvVjgPD13cY8G5Vzm3UBArsm4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=hCr2MjltmK6M1YwkCbi3BI8dxEGb2VoNd8IqPA38c0LUezbBUGb2/oM2QV7Wzd0YE Kl4m5q8XmNoSiD8cohdDLKi9SG0Lxt5hAPxnGkTuf5PxHxWcBzAB2GXXPabOEB6NRx HO8HCpcDQMi2pOWSfxo8Kzh0UU3Ech1y5HW3ir2Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50718: drm/amdgpu: fix pci device refcount leak Date: Wed, 24 Dec 2025 13:26:17 +0100 Message-ID: <2025122416-CVE-2022-50718-a890@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2764; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=F1I6Y/BfvbCMVhikBpiW5T3JrA79W0YI/wJNhLU8o7o=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnet1889pUTE3v8meE/26KXO/i9M1Zw2Yk+e7uzmkPEm f8918rkjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZgIx2qGuRKHJjRNlZnFEGaa EqVwLou9PmWNA8N8r6Xbk1g3XK4NvTipLaAyfKb6waNSAA== 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: drm/amdgpu: fix pci device refcount leak As comment of pci_get_domain_bus_and_slot() says, it returns a pci device with refcount increment, when finish using it, the caller must decrement the reference count by calling pci_dev_put(). So before returning from amdgpu_device_resume|suspend_display_audio(), pci_dev_put() is called to avoid refcount leak. The Linux kernel CVE team has assigned CVE-2022-50718 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit 3f12acc8d6d4b2e62fab8f652d7075a859d80b42 and fixed in 5.10.163 with commit 3725a8f26bdbc38dfdf545836117f1e069277c91 Issue introduced in 5.8 with commit 3f12acc8d6d4b2e62fab8f652d7075a859d80b42 and fixed in 5.15.86 with commit 02105f0b3021ee5853b2fa50853c42f35fc01cfd Issue introduced in 5.8 with commit 3f12acc8d6d4b2e62fab8f652d7075a859d80b42 and fixed in 6.0.16 with commit f13661b72a61708cecb06562f8acff068a4f31f7 Issue introduced in 5.8 with commit 3f12acc8d6d4b2e62fab8f652d7075a859d80b42 and fixed in 6.1.2 with commit d7352b410471cbebf6350b2990bae82bb0d59a76 Issue introduced in 5.8 with commit 3f12acc8d6d4b2e62fab8f652d7075a859d80b42 and fixed in 6.2 with commit b85e285e3d6352b02947fc1b72303673dfacb0aa 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-50718 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/gpu/drm/amd/amdgpu/amdgpu_device.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/3725a8f26bdbc38dfdf545836117f1e069277c91 https://git.kernel.org/stable/c/02105f0b3021ee5853b2fa50853c42f35fc01cfd https://git.kernel.org/stable/c/f13661b72a61708cecb06562f8acff068a4f31f7 https://git.kernel.org/stable/c/d7352b410471cbebf6350b2990bae82bb0d59a76 https://git.kernel.org/stable/c/b85e285e3d6352b02947fc1b72303673dfacb0aa