# CVE-2022-49137: drm/amd/amdgpu/amdgpu_cs: fix refcount leak of a dma_fence obj

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 19% of CVEs (2026-12-01)
- Published: 2025-02-26T01:55:10.030Z
- Modified: 2026-08-13T00:17:29.520Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 7ca24cf2d2269bde25e21c02a77fe81995a081ae before 72d77ddb2224ebc00648f4f78f8a9a259dccbdf7; from 7ca24cf2d2269bde25e21c02a77fe81995a081ae before 4009f104b02b223d1a11d74b36b1cc083bc37028; from 7ca24cf2d2269bde25e21c02a77fe81995a081ae before 927beb05aaa429c883cc0ec6adc48964b187e291; from 7ca24cf2d2269bde25e21c02a77fe81995a081ae before 3edd8646cb7c11b57c90e026bda6f21076223f5b; from 7ca24cf2d2269bde25e21c02a77fe81995a081ae before b6d1f7d97c81ebaf2cda9c4c943ee2e484fffdcf; from 7ca24cf2d2269bde25e21c02a77fe81995a081ae before bc2d5c0775c839e2b072884f4ee6a93ba410f107; from 7ca24cf2d2269bde25e21c02a77fe81995a081ae before dfced44f122c500004a48ecc8db516bb6a295a1b; 4.15 (not affected: before 4.15; from 4.19.238 up to 4.19.*; from 5.4.189 up to 5.4.*; from 5.10.111 up to 5.10.*; from 5.15.34 up to 5.15.*; from 5.16.20 up to 5.16.*; from 5.17.3 up to 5.17.*; from 5.18 up to *)
- linux linux_kernel: before 4.19.238; from 4.20 before 5.4.189; from 5.5 before 5.10.111; from 5.11 before 5.15.34; from 5.16 before 5.16.20; from 5.17 before 5.17.3

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/72d77ddb2224ebc00648f4f78f8a9a259dccbdf7> (patch)
- <https://git.kernel.org/stable/c/4009f104b02b223d1a11d74b36b1cc083bc37028> (patch)
- <https://git.kernel.org/stable/c/927beb05aaa429c883cc0ec6adc48964b187e291> (patch)
- <https://git.kernel.org/stable/c/3edd8646cb7c11b57c90e026bda6f21076223f5b> (patch)
- <https://git.kernel.org/stable/c/b6d1f7d97c81ebaf2cda9c4c943ee2e484fffdcf> (patch)
- <https://git.kernel.org/stable/c/bc2d5c0775c839e2b072884f4ee6a93ba410f107> (patch)
- <https://git.kernel.org/stable/c/dfced44f122c500004a48ecc8db516bb6a295a1b> (patch)

## Sources

- CVE List: [CVE-2022-49137](https://www.cve.org/CVERecord?id=CVE-2022-49137), CVE Terms of Use, modified 2026-08-12
- NVD: [CVE-2022-49137](https://nvd.nist.gov/vuln/detail/CVE-2022-49137), Public domain, modified 2026-08-13

---

Page: https://cve.day/CVE-2022-49137 · Whole record: https://cve.day/CVE-2022-49137.json · Rebuilt by cve.day 2026-11-25T22:58:20.211Z
