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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-04-02T06:49:10.659Z
- **Modified:** 2026-06-17T06:43:12.877Z

## Who should check

- Anyone running Linux \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< b602f098f716723fa5c6c96a486e0afba83b7b94; \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< 752312f6a79440086ac0f9b08d7776870037323c; \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< 1556c242e64cdffe58736aa650b0b395854fe4d4; \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< 2a9de42e8d3c82c6990d226198602be44f43f340
- Anyone running Linux 5.14

## 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);

## Affected and fixed versions

- Linux: \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< b602f098f716723fa5c6c96a486e0afba83b7b94; \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< 752312f6a79440086ac0f9b08d7776870037323c; \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< 1556c242e64cdffe58736aa650b0b395854fe4d4; \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< 2a9de42e8d3c82c6990d226198602be44f43f340 (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- Upgrade Linux to 2a9de42e8d3c82c6990d226198602be44f43f340 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-52632. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52632.md
Affected: Linux >= 42de677f79999791bee4e21be318c32d90ab62c6, < b602f098f716723fa5c6c96a486e0afba83b7b94; >= 42de677f79999791bee4e21be318c32d90ab62c6, < 752312f6a79440086ac0f9b08d7776870037323c; >= 42de677f79999791bee4e21be318c32d90ab62c6, < 1556c242e64cdffe58736aa650b0b395854fe4d4; >= 42de677f79999791bee4e21…
Fixed in: Linux 752312f6a79440086ac0f9b08d7776870037323c, Linux 1556c242e64cdffe58736aa650b0b395854fe4d4, Linux 2a9de42e8d3c82c6990d226198602be44f43f340

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-52632 being exploited?

There is no confirmed exploitation: CVE-2023-52632 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-52632?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-52632?

Linux \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< b602f098f716723fa5c6c96a486e0afba83b7b94; \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< 752312f6a79440086ac0f9b08d7776870037323c; \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< 1556c242e64cdffe58736aa650b0b395854fe4d4; \>= 42de677f79999791bee4e21be318c32d90ab62c6, \< 2a9de42e8d3c82c6990d226198602be44f43f340; Linux 5.14.

### Is there a fix for CVE-2023-52632?

Yes. Fixed in Linux 752312f6a79440086ac0f9b08d7776870037323c, Linux 1556c242e64cdffe58736aa650b0b395854fe4d4, Linux 2a9de42e8d3c82c6990d226198602be44f43f340. Upgrade Linux to 2a9de42e8d3c82c6990d226198602be44f43f340 or later.

### How do I check if I'm affected by CVE-2023-52632?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-52632>

HTML: <https://flawdb.com/CVE-2023-52632> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-52632>
