# CVE-2023-52632: drm/amdkfd: Fix lock dependency warning with srcu

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 8% of CVEs (2026-11-30)
- Published: 2024-04-02T06:49:10.659Z
- Modified: 2026-06-17T06:43:12.877Z
- Weaknesses: CWE-667
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

drm/amdkfd: Fix lock dependency warning with srcu

======================================================
WARNING: possible circular locking dependency detected
6.5.0-kfd-yangp #2289 Not tainted
------------------------------------------------------
kworker/0:2/996 is trying to acquire lock:
        (srcu){.+.+}-{0:0}, at: __synchronize_srcu+0x5/0x1a0

but task is already holding lock:
        ((work_completion)(&svms->deferred_list_work)){+.+.}-{0:0}, at:
	process_one_work+0x211/0x560

which lock already depends on the new lock.

the existing dependency chain (in reverse order) is:

-> #3 ((work_completion)(&svms->deferred_list_work)){+.+.}-{0:0}:
        __flush_work+0x88/0x4f0
        svm_range_list_lock_and_flush_work+0x3d/0x110 [amdgpu]
        svm_range_set_attr+0xd6/0x14c0 [amdgpu]
        kfd_ioctl+0x1d1/0x630 [amdgpu]
        __x64_sys_ioctl+0x88/0xc0

-> #2 (&info->lock#2){+.+.}-{3:3}:
        __mutex_lock+0x99/0xc70
        amdgpu_amdkfd_gpuvm_restore_process_bos+0x54/0x740 [amdgpu]
        restore_process_helper+0x22/0x80 [amdgpu]
        restore_process_worker+0x2d/0xa0 [amdgpu]
        process_one_work+0x29b/0x560
        worker_thread+0x3d/0x3d0

-> #1 ((work_completion)(&(&process->restore_work)->work)){+.+.}-{0:0}:
        __flush_work+0x88/0x4f0
        __cancel_work_timer+0x12c/0x1c0
        kfd_process_notifier_release_internal+0x37/0x1f0 [amdgpu]
        __mmu_notifier_release+0xad/0x240
        exit_mmap+0x6a/0x3a0
        mmput+0x6a/0x120
        do_exit+0x322/0xb90
        do_group_exit+0x37/0xa0
        __x64_sys_exit_group+0x18/0x20
        do_syscall_64+0x38/0x80

-> #0 (srcu){.+.+}-{0:0}:
        __lock_acquire+0x1521/0x2510
        lock_sync+0x5f/0x90
        __synchronize_srcu+0x4f/0x1a0
        __mmu_notifier_release+0x128/0x240
        exit_mmap+0x6a/0x3a0
        mmput+0x6a/0x120
        svm_range_deferred_list_work+0x19f/0x350 [amdgpu]
        process_one_work+0x29b/0x560
        worker_thread+0x3d/0x3d0

other info that might help us debug this:
Chain exists of:
  srcu --> &info->lock#2 --> (work_completion)(&svms->deferred_list_work)

Possible unsafe locking scenario:

        CPU0                    CPU1
        ----                    ----
        lock((work_completion)(&svms->deferred_list_work));
                        lock(&info->lock#2);
			lock((work_completion)(&svms->deferred_list_work));
        sync(srcu);

(As written by CVE List.)

## Affected

- Linux Linux: from 42de677f79999791bee4e21be318c32d90ab62c6 before b602f098f716723fa5c6c96a486e0afba83b7b94; from 42de677f79999791bee4e21be318c32d90ab62c6 before 752312f6a79440086ac0f9b08d7776870037323c; from 42de677f79999791bee4e21be318c32d90ab62c6 before 1556c242e64cdffe58736aa650b0b395854fe4d4; from 42de677f79999791bee4e21be318c32d90ab62c6 before 2a9de42e8d3c82c6990d226198602be44f43f340; 5.14 (not affected: before 5.14; from 6.1.77 up to 6.1.*; from 6.6.16 up to 6.6.*; from 6.7.4 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: before 6.1.77; from 6.2 before 6.6.16; from 6.7 before 6.7.4

## References

- <https://git.kernel.org/stable/c/b602f098f716723fa5c6c96a486e0afba83b7b94> (patch)
- <https://git.kernel.org/stable/c/752312f6a79440086ac0f9b08d7776870037323c> (patch)
- <https://git.kernel.org/stable/c/1556c242e64cdffe58736aa650b0b395854fe4d4> (patch)
- <https://git.kernel.org/stable/c/2a9de42e8d3c82c6990d226198602be44f43f340> (patch)

## Sources

- CVE List: [CVE-2023-52632](https://www.cve.org/CVERecord?id=CVE-2023-52632), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-52632](https://nvd.nist.gov/vuln/detail/CVE-2023-52632), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52632 · Whole record: https://cve.day/CVE-2023-52632.json · Rebuilt by cve.day 2026-11-25T22:58:33.467Z
