cve-2024-57920
Vulnerability from cvelistv5
Published
2025-01-19 11:52
Modified
2025-01-20 06:29
Severity ?
EPSS score ?
0.03% (0.04018)
Summary
In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: wq_release signals dma_fence only when available kfd_process_wq_release() signals eviction fence by dma_fence_signal() which wanrs if dma_fence is NULL. kfd_process->ef is initialized by kfd_process_device_init_vm() through ioctl. That means the fence is NULL for a new created kfd_process, and close a kfd_process right after open it will trigger the warning. This commit conditionally signals the eviction fence in kfd_process_wq_release() only when it is available. [ 503.660882] WARNING: CPU: 0 PID: 9 at drivers/dma-buf/dma-fence.c:467 dma_fence_signal+0x74/0xa0 [ 503.782940] Workqueue: kfd_process_wq kfd_process_wq_release [amdgpu] [ 503.789640] RIP: 0010:dma_fence_signal+0x74/0xa0 [ 503.877620] Call Trace: [ 503.880066] <TASK> [ 503.882168] ? __warn+0xcd/0x260 [ 503.885407] ? dma_fence_signal+0x74/0xa0 [ 503.889416] ? report_bug+0x288/0x2d0 [ 503.893089] ? handle_bug+0x53/0xa0 [ 503.896587] ? exc_invalid_op+0x14/0x50 [ 503.900424] ? asm_exc_invalid_op+0x16/0x20 [ 503.904616] ? dma_fence_signal+0x74/0xa0 [ 503.908626] kfd_process_wq_release+0x6b/0x370 [amdgpu] [ 503.914081] process_one_work+0x654/0x10a0 [ 503.918186] worker_thread+0x6c3/0xe70 [ 503.921943] ? srso_alias_return_thunk+0x5/0xfbef5 [ 503.926735] ? srso_alias_return_thunk+0x5/0xfbef5 [ 503.931527] ? __kthread_parkme+0x82/0x140 [ 503.935631] ? __pfx_worker_thread+0x10/0x10 [ 503.939904] kthread+0x2a8/0x380 [ 503.943132] ? __pfx_kthread+0x10/0x10 [ 503.946882] ret_from_fork+0x2d/0x70 [ 503.950458] ? __pfx_kthread+0x10/0x10 [ 503.954210] ret_from_fork_asm+0x1a/0x30 [ 503.958142] </TASK> [ 503.960328] ---[ end trace 0000000000000000 ]--- (cherry picked from commit 2774ef7625adb5fb9e9265c26a59dca7b8fd171e)
Impacted products
Vendor Product Version
Linux Linux Version: 967d226eaae8e40636d257bf8ae55d2c5a912f58
Version: 967d226eaae8e40636d257bf8ae55d2c5a912f58
Create a notification for this product.
   Linux Linux Version: 6.13
Create a notification for this product.
Show details on NVD website


{
   containers: {
      cna: {
         affected: [
            {
               defaultStatus: "unaffected",
               product: "Linux",
               programFiles: [
                  "drivers/gpu/drm/amd/amdkfd/kfd_process.c",
               ],
               repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               vendor: "Linux",
               versions: [
                  {
                     lessThan: "c8243def299793ac6c85fdc1086089c800c1051a",
                     status: "affected",
                     version: "967d226eaae8e40636d257bf8ae55d2c5a912f58",
                     versionType: "git",
                  },
                  {
                     lessThan: "a993d319aebb7cce8a10c6e685344b7c2ad5c4c2",
                     status: "affected",
                     version: "967d226eaae8e40636d257bf8ae55d2c5a912f58",
                     versionType: "git",
                  },
               ],
            },
            {
               defaultStatus: "affected",
               product: "Linux",
               programFiles: [
                  "drivers/gpu/drm/amd/amdkfd/kfd_process.c",
               ],
               repo: "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
               vendor: "Linux",
               versions: [
                  {
                     status: "affected",
                     version: "6.13",
                  },
                  {
                     lessThan: "6.13",
                     status: "unaffected",
                     version: "0",
                     versionType: "semver",
                  },
                  {
                     lessThanOrEqual: "6.12.*",
                     status: "unaffected",
                     version: "6.12.10",
                     versionType: "semver",
                  },
               ],
            },
         ],
         descriptions: [
            {
               lang: "en",
               value: "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdkfd: wq_release signals dma_fence only when available\n\nkfd_process_wq_release() signals eviction fence by\ndma_fence_signal() which wanrs if dma_fence\nis NULL.\n\nkfd_process->ef is initialized by kfd_process_device_init_vm()\nthrough ioctl. That means the fence is NULL for a new\ncreated kfd_process, and close a kfd_process right\nafter open it will trigger the warning.\n\nThis commit conditionally signals the eviction fence\nin kfd_process_wq_release() only when it is available.\n\n[  503.660882] WARNING: CPU: 0 PID: 9 at drivers/dma-buf/dma-fence.c:467 dma_fence_signal+0x74/0xa0\n[  503.782940] Workqueue: kfd_process_wq kfd_process_wq_release [amdgpu]\n[  503.789640] RIP: 0010:dma_fence_signal+0x74/0xa0\n[  503.877620] Call Trace:\n[  503.880066]  <TASK>\n[  503.882168]  ? __warn+0xcd/0x260\n[  503.885407]  ? dma_fence_signal+0x74/0xa0\n[  503.889416]  ? report_bug+0x288/0x2d0\n[  503.893089]  ? handle_bug+0x53/0xa0\n[  503.896587]  ? exc_invalid_op+0x14/0x50\n[  503.900424]  ? asm_exc_invalid_op+0x16/0x20\n[  503.904616]  ? dma_fence_signal+0x74/0xa0\n[  503.908626]  kfd_process_wq_release+0x6b/0x370 [amdgpu]\n[  503.914081]  process_one_work+0x654/0x10a0\n[  503.918186]  worker_thread+0x6c3/0xe70\n[  503.921943]  ? srso_alias_return_thunk+0x5/0xfbef5\n[  503.926735]  ? srso_alias_return_thunk+0x5/0xfbef5\n[  503.931527]  ? __kthread_parkme+0x82/0x140\n[  503.935631]  ? __pfx_worker_thread+0x10/0x10\n[  503.939904]  kthread+0x2a8/0x380\n[  503.943132]  ? __pfx_kthread+0x10/0x10\n[  503.946882]  ret_from_fork+0x2d/0x70\n[  503.950458]  ? __pfx_kthread+0x10/0x10\n[  503.954210]  ret_from_fork_asm+0x1a/0x30\n[  503.958142]  </TASK>\n[  503.960328] ---[ end trace 0000000000000000 ]---\n\n(cherry picked from commit 2774ef7625adb5fb9e9265c26a59dca7b8fd171e)",
            },
         ],
         providerMetadata: {
            dateUpdated: "2025-01-20T06:29:34.412Z",
            orgId: "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            shortName: "Linux",
         },
         references: [
            {
               url: "https://git.kernel.org/stable/c/c8243def299793ac6c85fdc1086089c800c1051a",
            },
            {
               url: "https://git.kernel.org/stable/c/a993d319aebb7cce8a10c6e685344b7c2ad5c4c2",
            },
         ],
         title: "drm/amdkfd: wq_release signals dma_fence only when available",
         x_generator: {
            engine: "bippy-5f407fcff5a0",
         },
      },
   },
   cveMetadata: {
      assignerOrgId: "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      assignerShortName: "Linux",
      cveId: "CVE-2024-57920",
      datePublished: "2025-01-19T11:52:39.850Z",
      dateReserved: "2025-01-19T11:50:08.375Z",
      dateUpdated: "2025-01-20T06:29:34.412Z",
      state: "PUBLISHED",
   },
   dataType: "CVE_RECORD",
   dataVersion: "5.1",
   "vulnerability-lookup:meta": {
      nvd: "{\"cve\":{\"id\":\"CVE-2024-57920\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-01-19T12:15:26.150\",\"lastModified\":\"2025-01-19T12:15:26.150\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\ndrm/amdkfd: wq_release signals dma_fence only when available\\n\\nkfd_process_wq_release() signals eviction fence by\\ndma_fence_signal() which wanrs if dma_fence\\nis NULL.\\n\\nkfd_process->ef is initialized by kfd_process_device_init_vm()\\nthrough ioctl. That means the fence is NULL for a new\\ncreated kfd_process, and close a kfd_process right\\nafter open it will trigger the warning.\\n\\nThis commit conditionally signals the eviction fence\\nin kfd_process_wq_release() only when it is available.\\n\\n[  503.660882] WARNING: CPU: 0 PID: 9 at drivers/dma-buf/dma-fence.c:467 dma_fence_signal+0x74/0xa0\\n[  503.782940] Workqueue: kfd_process_wq kfd_process_wq_release [amdgpu]\\n[  503.789640] RIP: 0010:dma_fence_signal+0x74/0xa0\\n[  503.877620] Call Trace:\\n[  503.880066]  <TASK>\\n[  503.882168]  ? __warn+0xcd/0x260\\n[  503.885407]  ? dma_fence_signal+0x74/0xa0\\n[  503.889416]  ? report_bug+0x288/0x2d0\\n[  503.893089]  ? handle_bug+0x53/0xa0\\n[  503.896587]  ? exc_invalid_op+0x14/0x50\\n[  503.900424]  ? asm_exc_invalid_op+0x16/0x20\\n[  503.904616]  ? dma_fence_signal+0x74/0xa0\\n[  503.908626]  kfd_process_wq_release+0x6b/0x370 [amdgpu]\\n[  503.914081]  process_one_work+0x654/0x10a0\\n[  503.918186]  worker_thread+0x6c3/0xe70\\n[  503.921943]  ? srso_alias_return_thunk+0x5/0xfbef5\\n[  503.926735]  ? srso_alias_return_thunk+0x5/0xfbef5\\n[  503.931527]  ? __kthread_parkme+0x82/0x140\\n[  503.935631]  ? __pfx_worker_thread+0x10/0x10\\n[  503.939904]  kthread+0x2a8/0x380\\n[  503.943132]  ? __pfx_kthread+0x10/0x10\\n[  503.946882]  ret_from_fork+0x2d/0x70\\n[  503.950458]  ? __pfx_kthread+0x10/0x10\\n[  503.954210]  ret_from_fork_asm+0x1a/0x30\\n[  503.958142]  </TASK>\\n[  503.960328] ---[ end trace 0000000000000000 ]---\\n\\n(cherry picked from commit 2774ef7625adb5fb9e9265c26a59dca7b8fd171e)\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/a993d319aebb7cce8a10c6e685344b7c2ad5c4c2\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/c8243def299793ac6c85fdc1086089c800c1051a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
   },
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.