{"id":"CVE-2022-49137","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:\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-\u003ein.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.","modified":"2026-04-11T12:43:35.686878Z","published":"2025-02-26T01:55:10.030Z","related":["SUSE-SU-2025:01600-1","SUSE-SU-2025:1027-1","SUSE-SU-2025:1176-1","SUSE-SU-2025:1183-1","SUSE-SU-2025:1194-1","SUSE-SU-2025:1241-1","SUSE-SU-2025:1263-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49137.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/3edd8646cb7c11b57c90e026bda6f21076223f5b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4009f104b02b223d1a11d74b36b1cc083bc37028"},{"type":"WEB","url":"https://git.kernel.org/stable/c/72d77ddb2224ebc00648f4f78f8a9a259dccbdf7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/927beb05aaa429c883cc0ec6adc48964b187e291"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b6d1f7d97c81ebaf2cda9c4c943ee2e484fffdcf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bc2d5c0775c839e2b072884f4ee6a93ba410f107"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dfced44f122c500004a48ecc8db516bb6a295a1b"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49137.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49137"},{"type":"PACKAGE","url":"https://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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}