CVE-2024-41008 (GCVE-0-2024-41008)

Vulnerability from cvelistv5 – Published: 2024-07-16 08:03 – Updated: 2025-09-16 08:02
VLAI?
Title
drm/amdgpu: change vm->task_info handling
Summary
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: change vm->task_info handling This patch changes the handling and lifecycle of vm->task_info object. The major changes are: - vm->task_info is a dynamically allocated ptr now, and its uasge is reference counted. - introducing two new helper funcs for task_info lifecycle management - amdgpu_vm_get_task_info: reference counts up task_info before returning this info - amdgpu_vm_put_task_info: reference counts down task_info - last put to task_info() frees task_info from the vm. This patch also does logistical changes required for existing usage of vm->task_info. V2: Do not block all the prints when task_info not found (Felix) V3: Fixed review comments from Felix - Fix wrong indentation - No debug message for -ENOMEM - Add NULL check for task_info - Do not duplicate the debug messages (ti vs no ti) - Get first reference of task_info in vm_init(), put last in vm_fini() V4: Fixed review comments from Felix - fix double reference increment in create_task_info - change amdgpu_vm_get_task_info_pasid - additional changes in amdgpu_gem.c while porting
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: d38ceaf99ed015f2a0b9af3499791bd3a3daae21 , < b8f67b9ddf4f8fe6dd536590712b5912ad78f99c (git)
Create a notification for this product.
    Linux Linux Affected: 4.2
Unaffected: 0 , < 4.2 (semver)
Unaffected: 6.9 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-02T04:39:56.069Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/b8f67b9ddf4f8fe6dd536590712b5912ad78f99c"
          }
        ],
        "title": "CVE Program Container"
      },
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2024-41008",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-09-10T17:00:49.381223Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-09-11T17:34:18.174Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c",
            "drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c",
            "drivers/gpu/drm/amd/amdgpu/amdgpu_job.c",
            "drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c",
            "drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c",
            "drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h",
            "drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c",
            "drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c",
            "drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c",
            "drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c",
            "drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c",
            "drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c",
            "drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c",
            "drivers/gpu/drm/amd/amdkfd/kfd_smi_events.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "b8f67b9ddf4f8fe6dd536590712b5912ad78f99c",
              "status": "affected",
              "version": "d38ceaf99ed015f2a0b9af3499791bd3a3daae21",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c",
            "drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c",
            "drivers/gpu/drm/amd/amdgpu/amdgpu_job.c",
            "drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c",
            "drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c",
            "drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h",
            "drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c",
            "drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c",
            "drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c",
            "drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c",
            "drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c",
            "drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c",
            "drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c",
            "drivers/gpu/drm/amd/amdkfd/kfd_smi_events.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.2"
            },
            {
              "lessThan": "4.2",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.9",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.9",
                  "versionStartIncluding": "4.2",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: change vm-\u003etask_info handling\n\nThis patch changes the handling and lifecycle of vm-\u003etask_info object.\nThe major changes are:\n- vm-\u003etask_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-\u003etask_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"
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-09-16T08:02:39.206Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/b8f67b9ddf4f8fe6dd536590712b5912ad78f99c"
        }
      ],
      "title": "drm/amdgpu: change vm-\u003etask_info handling",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2024-41008",
    "datePublished": "2024-07-16T08:03:47.091Z",
    "dateReserved": "2024-07-12T12:17:45.610Z",
    "dateUpdated": "2025-09-16T08:02:39.206Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/b8f67b9ddf4f8fe6dd536590712b5912ad78f99c\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-02T04:39:56.069Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2024-41008\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-09-10T17:00:49.381223Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-09-11T12:42:21.879Z\"}}], \"cna\": {\"title\": \"drm/amdgpu: change vm-\u003etask_info handling\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"d38ceaf99ed015f2a0b9af3499791bd3a3daae21\", \"lessThan\": \"b8f67b9ddf4f8fe6dd536590712b5912ad78f99c\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c\", \"drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c\", \"drivers/gpu/drm/amd/amdgpu/amdgpu_job.c\", \"drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c\", \"drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c\", \"drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h\", \"drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c\", \"drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c\", \"drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c\", \"drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c\", \"drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c\", \"drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c\", \"drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c\", \"drivers/gpu/drm/amd/amdkfd/kfd_smi_events.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"4.2\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"4.2\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.9\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c\", \"drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c\", \"drivers/gpu/drm/amd/amdgpu/amdgpu_job.c\", \"drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c\", \"drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c\", \"drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h\", \"drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c\", \"drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c\", \"drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c\", \"drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c\", \"drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c\", \"drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c\", \"drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c\", \"drivers/gpu/drm/amd/amdkfd/kfd_smi_events.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/b8f67b9ddf4f8fe6dd536590712b5912ad78f99c\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\ndrm/amdgpu: change vm-\u003etask_info handling\\n\\nThis patch changes the handling and lifecycle of vm-\u003etask_info object.\\nThe major changes are:\\n- vm-\u003etask_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-\u003etask_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\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.9\", \"versionStartIncluding\": \"4.2\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-09-16T08:02:39.206Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2024-41008\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-09-16T08:02:39.206Z\", \"dateReserved\": \"2024-07-12T12:17:45.610Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-07-16T08:03:47.091Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…