{"id":"CVE-2024-41008","revision":"84b48fba2cd441b1afccaf14f7985a3a","records":[{"revision":"84b48fba2cd441b1afccaf14f7985a3a","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2024-41008","aliases":[],"title":"drm/amdgpu: change vm->task_info handling","description":"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","state":0,"publishedAt":"2024-07-16T08:03:47.091+00:00","modifiedAt":"2026-10-21T12:34:53.642+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c\",\n                        \"drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c\",\n                        \"drivers/gpu/drm/amd/amdgpu/amdgpu_job.c\",\n                        \"drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c\",\n                        \"drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c\",\n                        \"drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h\",\n                        \"drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c\",\n                        \"drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c\",\n                        \"drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c\",\n                        \"drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c\",\n                        \"drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c\",\n                        \"drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c\",\n                        \"drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c\",\n                        \"drivers/gpu/drm/amd/amdkfd/kfd_smi_events.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"d38ceaf99ed015f2a0b9af3499791bd3a3daae21\",\n                            \"lessThan\": \"251840f22eff35c25de531a3fcb523df94c128c0\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"d38ceaf99ed015f2a0b9af3499791bd3a3daae21\",\n                            \"lessThan\": \"b8f67b9ddf4f8fe6dd536590712b5912ad78f99c\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c\",\n                        \"drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c\",\n                        \"drivers/gpu/drm/amd/amdgpu/amdgpu_job.c\",\n                        \"drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c\",\n                        \"drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c\",\n                        \"drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h\",\n                        \"drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c\",\n                        \"drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c\",\n                        \"drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c\",\n                        \"drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c\",\n                        \"drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c\",\n                        \"drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c\",\n                        \"drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c\",\n                        \"drivers/gpu/drm/amd/amdkfd/kfd_smi_events.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"4.2\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"4.2\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.160\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.9\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/251840f22eff35c25de531a3fcb523df94c128c0","https://git.kernel.org/stable/c/b8f67b9ddf4f8fe6dd536590712b5912ad78f99c"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-41008","license":"CVE Program Terms of Use","key":"cve-program:CVE-2024-41008","identifiers":["CVE-2024-41008"]},"retained":false,"historicalAffected":[]}],"coverage":[]}