Bug 2363362 (CVE-2022-49843) - CVE-2022-49843 kernel: drm/amdkfd: Migrate in CPU page fault use current mm
Summary: CVE-2022-49843 kernel: drm/amdkfd: Migrate in CPU page fault use current mm
Keywords:
Status: NEW
Alias: CVE-2022-49843
Product: Security Response
Classification: Other
Component: vulnerability-draft
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-01 15:01 UTC by OSIDB Bzimport
Modified: 2025-06-24 07:40 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-01 15:01:26 UTC
In the Linux kernel, the following vulnerability has been resolved:

drm/amdkfd: Migrate in CPU page fault use current mm

migrate_vma_setup shows below warning because we don't hold another
process mm mmap_lock. We should use current vmf->vma->vm_mm instead, the
caller already hold current mmap lock inside CPU page fault handler.

 WARNING: CPU: 10 PID: 3054 at include/linux/mmap_lock.h:155 find_vma
 Call Trace:
  walk_page_range+0x76/0x150
  migrate_vma_setup+0x18a/0x640
  svm_migrate_vram_to_ram+0x245/0xa10 [amdgpu]
  svm_migrate_to_ram+0x36f/0x470 [amdgpu]
  do_swap_page+0xcfe/0xec0
  __handle_mm_fault+0x96b/0x15e0
  handle_mm_fault+0x13f/0x3e0
  do_user_addr_fault+0x1e7/0x690

Comment 1 Avinash Hanwate 2025-05-02 04:16:26 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025050141-CVE-2022-49843-f36d@gregkh/T

Comment 4 TEJ RATHI 2025-05-29 06:41:17 UTC
This CVE has been rejected by the Linux kernel community. Refer to the announcement: https://lore.kernel.org/linux-cve-announce/2025050826-REJECTED-d43a@gregkh/

Comment added by: Automated Script


Note You need to log in before you can comment on or make changes to this bug.