nday
CVE-2025-38520

drm/amdkfd: Don't call mmput from MMU notifier callback

Linux / Linux

披露于 。本站尚未获取修复依据,不能据此认为没有补丁。四个 PoC 来源都还没有收录。尚未列入 CISA KEV。

标签 漏洞类型race condition 攻击途径本地无需用户交互 产品Linux kernel 产品类型操作系统
这些标签的依据

这些标签由 nday 按固定规则从下列事实自动推导,不是 NVD、编号分配方或其他来源给出的。全部标签和规则见 ~/tags。

race condition
CWE-667(来源:NVD 分析人员)
本地
NVD 分析人员 给出的 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H(CVSS 3.1)中的 AV:L
无需用户交互
NVD 分析人员 给出的 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H(CVSS 3.1)中的 UI:N
Linux kernel
CVE 记录列出的受影响产品:Linux · LinuxNVD 分析人员标为易受攻击的 CPE 名称:o:linux:linux_kernel
操作系统
CVE 记录列出的受影响产品:Linux · LinuxNVD 分析人员标为易受攻击的 CPE 名称:o:linux:linux_kernelnday 产品登记表中 Linux kernel 的产品类型
当前阶段
DIS
披露
CVSS
暂无评分

生命周期

横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
2025-08-16T10:55Z
PAT补丁
尚无记录
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录

摘要

In the Linux kernel, the following vulnerability has been resolved:

drm/amdkfd: Don't call mmput from MMU notifier callback

If the process is exiting, the mmput inside mmu notifier callback from compactd or fork or numa balancing could release the last reference of mm struct to call exit_mmap and free_pgtable, this triggers deadlock with below backtrace.

The deadlock will leak kfd process as mmu notifier release is not called and cause VRAM leaking.

The fix is to take mm reference mmget_non_zero when adding prange to the deferred list to pair with mmput in deferred list work.

If prange split and add into pchild list, the pchild work_item.mm is not used, so remove the mm parameter from svm_range_unmap_split and svm_range_add_child.

The backtrace of hung task:

INFO: task python:348105 blocked for more than 64512 seconds.
Call Trace:
 __schedule+0x1c3/0x550
 schedule+0x46/0xb0
 rwsem_down_write_slowpath+0x24b/0x4c0
 unlink_anon_vmas+0xb1/0x1c0
 free_pgtables+0xa9/0x130
 exit_mmap+0xbc/0x1a0
 mmput+0x5a/0x140
 svm_range_cpu_invalidate_pagetables+0x2b/0x40 [amdgpu]
 mn_itree_invalidate+0x72/0xc0
 __mmu_notifier_invalidate_range_start+0x48/0x60
 try_to_unmap_one+0x10fa/0x1400
 rmap_walk_anon+0x196/0x460
 try_to_unmap+0xbb/0x210
 migrate_page_unmap+0x54d/0x7e0
 migrate_pages_batch+0x1c3/0xae0
 migrate_pages_sync+0x98/0x240
 migrate_pages+0x25c/0x520
 compact_zone+0x29d/0x590
 compact_zone_order+0xb6/0xf0
 try_to_compact_pages+0xbe/0x220
 __alloc_pages_direct_compact+0x96/0x1a0
 __alloc_pages_slowpath+0x410/0x930
 __alloc_pages_nodemask+0x3a9/0x3e0
 do_huge_pmd_anonymous_page+0xd7/0x3e0
 __handle_mm_fault+0x5e3/0x5f0
 handle_mm_fault+0xf7/0x2e0
 hmm_vma_fault.isra.0+0x4d/0xa0
 walk_pmd_range.isra.0+0xa8/0x310
 walk_pud_range+0x167/0x240
 walk_pgd_range+0x55/0x100
 __walk_page_range+0x87/0x90
 walk_page_range+0xf6/0x160
 hmm_range_fault+0x4f/0x90
 amdgpu_hmm_range_get_pages+0x123/0x230 [amdgpu]
 amdgpu_ttm_tt_get_user_pages+0xb1/0x150 [amdgpu]
 init_user_pages+0xb1/0x2a0 [amdgpu]
 amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu+0x543/0x7d0 [amdgpu]
 kfd_ioctl_alloc_memory_of_gpu+0x24c/0x4e0 [amdgpu]
 kfd_ioctl+0x29d/0x500 [amdgpu]

(cherry picked from commit a29e067bd38946f752b0ef855f3dfff87e77bec7)

以上是 CVE 记录(cvelist)中的原文,未经改写。

事件记录

+DIS披露

CVE 记录发布,编号分配方是 Linux。

来源 cvelist · 本站 批量导入 · 原始记录
{
  "id": 374775,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2025-38520",
  "occurred_at": "2025-08-16T10:55:07.114Z",
  "observed_at": "2026-11-13T05:39:08.090137Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "state": "PUBLISHED",
    "date_published": "2025-08-16T10:55:07.114Z",
    "assigner_short_name": "Linux"
  }
}

纠错

报告错误或缺失

页面有误或缺失?告诉编辑;采纳后在本页修订记录公开说明,上游数据不会被改动。

研究员讨论

近 7 天有 0 位研究员提到

研究员在 X 上提到此 CVE 的帖子,原文照录,nday 不核实。

尚未采集到名单内研究员在 X 上提到此 CVE 的帖子。

讨论

0 条评论

还没有评论。