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 C62F314389D for ; Tue, 21 May 2024 15:07:32 +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=1716304052; cv=none; b=STgcWSzZ82YWhXICAPrri4Q1G2dUYYs+v87eLiidT7qtn8C3i6tOLoRizK7rlKtETwtKR7Y+44+xA93jrh9b3l3HEUusNIeCM7Mgr0DTvw8FZqOIjCqXN/o4TInd7fEvccWHXP18RviDCjHaezB/TQCj8bzvEQca/weaTvn9yPU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716304052; c=relaxed/simple; bh=ZmnN9mw+7viKg0UFBBYyQlYFdlRboNWFf6oQr9/TsiQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YdLjjW/GFKlyilBxgLGfoQFvi4RLIaApZD7Dw0y1sUfgynwW0KfWTKtDTJB9PqVr3KedPdR/Tz7kziy2hcBB1xBpHZ21LEUM32zRf6vU6zV3UUdAsI2ixiv+r+rZ2CcbPFGP8akKh7b/7UKY8CCPKxif9fF7edpNl7KiSszbpDA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vpL/x7O7; 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="vpL/x7O7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB12BC2BD11; Tue, 21 May 2024 15:07:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716304052; bh=ZmnN9mw+7viKg0UFBBYyQlYFdlRboNWFf6oQr9/TsiQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vpL/x7O7wkLEO/24GeJyECMUewRI8D1+gl3Q3cvsKqIlUyIxrFXa4cw+uyEVnY2Wf CuNBImVxSuQXdRtMOQ6/pcq9kw5x50Ui92aIl+IRCuNo3YmzcKwXc4UFx5DSjQfmQc YKKfG91E72bv715WQOtoe0QXwRFWnd7GRaa3Y5hI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47431: drm/amdgpu: fix gart.bo pin_count leak Date: Tue, 21 May 2024 17:04:48 +0200 Message-ID: <2024052158-CVE-2021-47431-ff0c@gregkh> X-Mailer: git-send-email 2.45.1 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=1983; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZmnN9mw+7viKg0UFBBYyQlYFdlRboNWFf6oQr9/TsiQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+2+8J3uFUZJWzeeuv0Csif+XV+jlbjP5u5br0TvJ3e vjHw0J+HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRiWEM88wcvoZFdp/g/5Qv N6Pt8aKnWu7XmRjmmVsUhjjt7L3+4Xu0jM3J4scMHr+XAwA= 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: drm/amdgpu: fix gart.bo pin_count leak gmc_v{9,10}_0_gart_disable() isn't called matched with correspoding gart_enbale function in SRIOV case. This will lead to gart.bo pin_count leak on driver unload. The Linux kernel CVE team has assigned CVE-2021-47431 to this issue. Affected and fixed versions =========================== Fixed in 5.4.154 with commit 83d857d6b096 Fixed in 5.10.74 with commit 621ddffb70db Fixed in 5.14.13 with commit 18d1c5ea3798 Fixed in 5.15 with commit 66805763a97f 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-2021-47431 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/gmc_v10_0.c drivers/gpu/drm/amd/amdgpu/gmc_v9_0.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/83d857d6b0967b6709cd38750c3ce2ed8ced1a95 https://git.kernel.org/stable/c/621ddffb70db824eabd63d18ac635180fe9500f9 https://git.kernel.org/stable/c/18d1c5ea3798ba42cfa0f8b2264d873463facb03 https://git.kernel.org/stable/c/66805763a97f8f7bdf742fc0851d85c02ed9411f