---
id: CVE-2021-47431
title: |-
  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
summary: |-
  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.b…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 4.2, < 5.4.154'
  - 'linux_kernel >= 5.5, < 5.10.74'
  - 'linux_kernel >= 5.11, < 5.14.13'
  - linux_kernel = 5.15
patched:
  - linux_kernel 5.14.13
published: '2024-05-21'
updated: '2026-08-11'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2021-47431'
references:
  - url: 'https://git.kernel.org/stable/c/18d1c5ea3798ba42cfa0f8b2264d873463facb03'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/621ddffb70db824eabd63d18ac635180fe9500f9'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/66805763a97f8f7bdf742fc0851d85c02ed9411f'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/83d857d6b0967b6709cd38750c3ce2ed8ced1a95'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/18d1c5ea3798ba42cfa0f8b2264d873463facb03'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/621ddffb70db824eabd63d18ac635180fe9500f9'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/66805763a97f8f7bdf742fc0851d85c02ed9411f'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/83d857d6b0967b6709cd38750c3ce2ed8ced1a95'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.00222
epssPercentile: 0.13104
ingestedAt: '2026-08-11T16:47:03.078Z'
---

## Overview

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.

## Affected

- `linux_kernel >= 4.2, < 5.4.154`
- `linux_kernel >= 5.5, < 5.10.74`
- `linux_kernel >= 5.11, < 5.14.13`
- `linux_kernel = 5.15`

## Remediation

Upgrade past the affected range:

- `linux_kernel 5.14.13`
