{"id":"CVE-2024-41008","published":"2024-07-16T08:03:47Z","modified":"2026-10-30T12:18:40Z","title":"drm/amdgpu: change vm->task_info handling","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: change vm->task_info handling\n\nThis patch changes the handling and lifecycle of vm->task_info object.\nThe major changes are:\n- vm->task_info is a dynamically allocated ptr now, and its uasge is\n  reference counted.\n- introducing two new helper funcs for task_info lifecycle management\n    - amdgpu_vm_get_task_info: reference counts up task_info before\n      returning this info\n    - amdgpu_vm_put_task_info: reference counts down task_info\n- last put to task_info() frees task_info from the vm.\n\nThis patch also does logistical changes required for existing usage\nof vm->task_info.\n\nV2: Do not block all the prints when task_info not found (Felix)\n\nV3: Fixed review comments from Felix\n   - Fix wrong indentation\n   - No debug message for -ENOMEM\n   - Add NULL check for task_info\n   - Do not duplicate the debug messages (ti vs no ti)\n   - Get first reference of task_info in vm_init(), put last\n     in vm_fini()\n\nV4: Fixed review comments from Felix\n   - fix double reference increment in create_task_info\n   - change amdgpu_vm_get_task_info_pasid\n   - additional changes in amdgpu_gem.c while porting","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00265,"percentile":0.18777,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/aa22d6c58505d239814b5ef8fa7da4ce43e9212b","tags":[]},{"url":"https://git.kernel.org/stable/c/251840f22eff35c25de531a3fcb523df94c128c0","tags":[]},{"url":"https://git.kernel.org/stable/c/b8f67b9ddf4f8fe6dd536590712b5912ad78f99c","tags":[]}],"priority":{"score":9.2,"factors":[{"name":"EPSS percentile","points":3.76},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < aa22d6c58505d239814b5ef8fa7da4ce43e9212b",">= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < 251840f22eff35c25de531a3fcb523df94c128c0",">= d38ceaf99ed015f2a0b9af3499791bd3a3daae21, < b8f67b9ddf4f8fe6dd536590712b5912ad78f99c"]},{"vendor":"Linux","product":"Linux","versions":["4.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T17:00:49.381223Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-39357","exploited":false,"provenance":"source"}}