CVE-2022-49137
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.27% (higher than 19% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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.*
CVE List
linux linux_kernelbefore 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.3NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/amd/amdgpu/amdgpu_cs: se corrige la pérdida de recuento de referencias de un objeto dma_fence Este problema se produce en una ruta de error en amdgpu_cs_fence_to_handle_ioctl(). Cuando `info->in.what` cae en el caso predeterminado, la función simplemente devuelve -EINVAL, olvidando disminuir el recuento de referencias de un objeto dma_fence, que es aumentado anteriormente por amdgpu_cs_get_fence(). Esto puede provocar fugas de recuento de referencias. Arréglelo disminuyendo el recuento de referencias de un objeto específico antes de devolver el código de error.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-49137 changed 2026-08-12CVE Terms of Use
NVDCVE-2022-49137 changed 2026-08-13Public domain