CVE-2022-49137

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-49137
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49137.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49137
Downstream
Related
Published
2025-02-26T07:00:50Z
Modified
2025-10-01T20:15:50Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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

drm/amd/amdgpu/amdgpucs: fix refcount leak of a dmafence obj

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

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

References

Affected packages