{"id":"CVE-2022-49137","aliases":["CVE-2022-49137"],"related":[],"kind":"vulnerability","state":"published","title":"drm/amd/amdgpu/amdgpu_cs: fix refcount leak of a dma_fence obj","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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-&gt;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.","source":"nvd"}],"published":"2025-02-26T01:55:10.030Z","modified":"2026-08-13T00:17:29.520Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"7ca24cf2d2269bde25e21c02a77fe81995a081ae","fixed":"72d77ddb2224ebc00648f4f78f8a9a259dccbdf7","status":"affected"},{"type":"git","introduced":"7ca24cf2d2269bde25e21c02a77fe81995a081ae","fixed":"4009f104b02b223d1a11d74b36b1cc083bc37028","status":"affected"},{"type":"git","introduced":"7ca24cf2d2269bde25e21c02a77fe81995a081ae","fixed":"927beb05aaa429c883cc0ec6adc48964b187e291","status":"affected"},{"type":"git","introduced":"7ca24cf2d2269bde25e21c02a77fe81995a081ae","fixed":"3edd8646cb7c11b57c90e026bda6f21076223f5b","status":"affected"},{"type":"git","introduced":"7ca24cf2d2269bde25e21c02a77fe81995a081ae","fixed":"b6d1f7d97c81ebaf2cda9c4c943ee2e484fffdcf","status":"affected"},{"type":"git","introduced":"7ca24cf2d2269bde25e21c02a77fe81995a081ae","fixed":"bc2d5c0775c839e2b072884f4ee6a93ba410f107","status":"affected"},{"type":"git","introduced":"7ca24cf2d2269bde25e21c02a77fe81995a081ae","fixed":"dfced44f122c500004a48ecc8db516bb6a295a1b","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.15","status":"unaffected"},{"type":"semver","introduced":"4.19.238","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.189","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.111","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.34","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.16.20","lastAffected":"5.16.*","status":"unaffected"},{"type":"semver","introduced":"5.17.3","lastAffected":"5.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"4.19.238"},{"status":"affected","introduced":"4.20","fixed":"5.4.189"},{"status":"affected","introduced":"5.5","fixed":"5.10.111"},{"status":"affected","introduced":"5.11","fixed":"5.15.34"},{"status":"affected","introduced":"5.16","fixed":"5.16.20"},{"status":"affected","introduced":"5.17","fixed":"5.17.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/72d77ddb2224ebc00648f4f78f8a9a259dccbdf7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4009f104b02b223d1a11d74b36b1cc083bc37028","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/927beb05aaa429c883cc0ec6adc48964b187e291","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3edd8646cb7c11b57c90e026bda6f21076223f5b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b6d1f7d97c81ebaf2cda9c4c943ee2e484fffdcf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bc2d5c0775c839e2b072884f4ee6a93ba410f107","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dfced44f122c500004a48ecc8db516bb6a295a1b","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T19:48:05.650Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49137","url":"https://www.cve.org/CVERecord?id=CVE-2022-49137","licence":"CVE Terms of Use","modified":"2026-08-12T23:58:04.815Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49137","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49137","licence":"Public domain","modified":"2026-08-13T00:17:29.520Z"}],"updatedAt":"2026-11-25T22:58:20.211Z","epss":{"score":0.00266,"percentile":0.19745,"date":"2026-12-01T12:00:22.000Z"}}