---
id: CVE-2022-49137
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  drm/amd/amdgpu/amdgpu_cs: fix refcount leak of a dma_fence obj

  This issue takes place in an error path in
  amdgpu_cs_fence_to_handle_ioctl()
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  drm/amd/amdgpu/amdgpu_cs: fix refcount leak of a dma_fence obj

  This issue takes place in an error path in
  amdgpu_cs_fence_to_handle_ioctl(). When `info->in.what` falls…
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.19.238
  - 'linux_kernel >= 4.20, < 5.4.189'
  - 'linux_kernel >= 5.5, < 5.10.111'
  - 'linux_kernel >= 5.11, < 5.15.34'
  - 'linux_kernel >= 5.16, < 5.16.20'
  - 'linux_kernel >= 5.17, < 5.17.3'
patched:
  - linux_kernel 5.17.3
published: '2025-02-26'
updated: '2026-08-13'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-49137'
references:
  - url: 'https://git.kernel.org/stable/c/3edd8646cb7c11b57c90e026bda6f21076223f5b'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/4009f104b02b223d1a11d74b36b1cc083bc37028'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/72d77ddb2224ebc00648f4f78f8a9a259dccbdf7'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/927beb05aaa429c883cc0ec6adc48964b187e291'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/b6d1f7d97c81ebaf2cda9c4c943ee2e484fffdcf'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/bc2d5c0775c839e2b072884f4ee6a93ba410f107'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/dfced44f122c500004a48ecc8db516bb6a295a1b'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
epss: 0.00266
epssPercentile: 0.16391
ingestedAt: '2026-08-13T00:57:22.739Z'
---

## Overview

In the Linux kernel, the following vulnerability has been resolved:

drm/amd/amdgpu/amdgpu_cs: fix refcount leak of a dma_fence obj

This issue takes place in an error path in
amdgpu_cs_fence_to_handle_ioctl(). When `info->in.what` falls into
default case, the function simply returns -EINVAL, forgetting to
decrement the reference count of a dma_fence obj, which is bumped
earlier by amdgpu_cs_get_fence(). This may result in reference count
leaks.

Fix it by decreasing the refcount of specific object before returning
the error code.

## Affected

- `linux_kernel < 4.19.238`
- `linux_kernel >= 4.20, < 5.4.189`
- `linux_kernel >= 5.5, < 5.10.111`
- `linux_kernel >= 5.11, < 5.15.34`
- `linux_kernel >= 5.16, < 5.16.20`
- `linux_kernel >= 5.17, < 5.17.3`

## Remediation

Upgrade past the affected range:

- `linux_kernel 5.17.3`
