{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-49137","id":"CVE-2022-49137","title":"drm/amd/amdgpu/amdgpu_cs: fix refcount leak of a dma_fence obj","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/amdgpu/amdgpu_cs: fix refcount leak of a dma_fence obj\n\nThis issue takes place in an error path in\namdgpu_cs_fence_to_handle_ioctl(). When `info->in.what` falls into\ndefault case, the function simply returns -EINVAL, forgetting to\ndecrement the reference count of a dma_fence obj, which is bumped\nearlier by amdgpu_cs_get_f","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/amdgpu/amdgpu_cs: fix refcount leak of a dma_fence obj\n\nThis issue takes place in an error path in\namdgpu_cs_fence_to_handle_ioctl(). When `info->in.what` falls into\ndefault case, the function simply returns -EINVAL, forgetting to\ndecrement the reference count of a dma_fence obj, which is bumped\nearlier by amdgpu_cs_get_fence(). This may result in reference count\nleaks.\n\nFix it by decreasing the refcount of specific object before returning\nthe error code.","published":"2025-02-26T01:55:10.030Z","updated":"2026-10-28T02:30:20.649388462Z","reserved":"2025-02-26T01:49:39.268Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7ca24cf2d2269bde25e21c02a77fe81995a081ae","lessThan":"72d77ddb2224ebc00648f4f78f8a9a259dccbdf7","status":"affected","versionType":"git"},{"version":"7ca24cf2d2269bde25e21c02a77fe81995a081ae","lessThan":"4009f104b02b223d1a11d74b36b1cc083bc37028","status":"affected","versionType":"git"},{"version":"7ca24cf2d2269bde25e21c02a77fe81995a081ae","lessThan":"927beb05aaa429c883cc0ec6adc48964b187e291","status":"affected","versionType":"git"},{"version":"7ca24cf2d2269bde25e21c02a77fe81995a081ae","lessThan":"3edd8646cb7c11b57c90e026bda6f21076223f5b","status":"affected","versionType":"git"},{"version":"7ca24cf2d2269bde25e21c02a77fe81995a081ae","lessThan":"b6d1f7d97c81ebaf2cda9c4c943ee2e484fffdcf","status":"affected","versionType":"git"},{"version":"7ca24cf2d2269bde25e21c02a77fe81995a081ae","lessThan":"bc2d5c0775c839e2b072884f4ee6a93ba410f107","status":"affected","versionType":"git"},{"version":"7ca24cf2d2269bde25e21c02a77fe81995a081ae","lessThan":"dfced44f122c500004a48ecc8db516bb6a295a1b","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.15","status":"affected"},{"version":"0","lessThan":"4.15","status":"unaffected","versionType":"semver"},{"version":"4.19.238","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.189","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.111","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.34","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.16.20","lessThanOrEqual":"5.16.*","status":"unaffected","versionType":"semver"},{"version":"5.17.3","lessThanOrEqual":"5.17.*","status":"unaffected","versionType":"semver"},{"version":"5.18","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/72d77ddb2224ebc00648f4f78f8a9a259dccbdf7","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4009f104b02b223d1a11d74b36b1cc083bc37028","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/927beb05aaa429c883cc0ec6adc48964b187e291","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/3edd8646cb7c11b57c90e026bda6f21076223f5b","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/b6d1f7d97c81ebaf2cda9c4c943ee2e484fffdcf","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/bc2d5c0775c839e2b072884f4ee6a93ba410f107","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/dfced44f122c500004a48ecc8db516bb6a295a1b","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49137.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49137","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00266,"epssPercentile":0.18721,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-49137","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49137","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-49137","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-49137","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}