CVE-2022-49137

Source
https://cve.org/CVERecord?id=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-26T01:55:10.030Z
Modified
2026-04-11T12:43:35.686878Z
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
drm/amd/amdgpu/amdgpu_cs: fix refcount leak of a dma_fence obj
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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49137.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d38ceaf99ed015f2a0b9af3499791bd3a3daae21
Fixed
72d77ddb2224ebc00648f4f78f8a9a259dccbdf7
Fixed
4009f104b02b223d1a11d74b36b1cc083bc37028
Fixed
927beb05aaa429c883cc0ec6adc48964b187e291
Fixed
3edd8646cb7c11b57c90e026bda6f21076223f5b
Fixed
b6d1f7d97c81ebaf2cda9c4c943ee2e484fffdcf
Fixed
bc2d5c0775c839e2b072884f4ee6a93ba410f107
Fixed
dfced44f122c500004a48ecc8db516bb6a295a1b

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49137.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.2.0
Fixed
4.19.238
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.189
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.111
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.34
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
5.16.20
Type
ECOSYSTEM
Events
Introduced
5.17.0
Fixed
5.17.3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49137.json"