# CVE-2025-68174: amd/amdkfd: enhance kfd process check in switch partition

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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)
- **Published:** 2025-12-16T13:42:53.891Z
- **Modified:** 2026-10-21T13:18:20.557Z

## Who should check

- Anyone running Linux \>= 0c7315e7d5ef9b36ca4db32ffeb34a187cbaf231, \< 3385a1def2df45ac04a70532dfcd20d9eeac9fbb; \>= 0c7315e7d5ef9b36ca4db32ffeb34a187cbaf231, \< 536d80f660ec12058e461f4db387ea42bee9250d; \>= 0c7315e7d5ef9b36ca4db32ffeb34a187cbaf231, \< 45da20e00d5da842e17dfc633072b127504f0d0e
- Anyone running Linux 6.5

## Description

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

amd/amdkfd: enhance kfd process check in switch partition

current switch partition only check if kfd\_processes\_table is empty.
kfd\_prcesses\_table entry is deleted in kfd\_process\_notifier\_release, but
kfd\_process tear down is in kfd\_process\_wq\_release.

consider two processes:

Process A (workqueue) -\> kfd\_process\_wq\_release -\> Access kfd\_node member
Process B switch partition -\> amdgpu\_xcp\_pre\_partition\_switch -\> amdgpu\_amdkfd\_device\_fini\_sw
-\> kfd\_node tear down.

Process A and B may trigger a race as shown in dmesg log.

This patch is to resolve the race by adding an atomic kfd\_process counter
kfd\_processes\_count, it increment as create kfd process, decrement as
finish kfd\_process\_wq\_release.

v2: Put kfd\_processes\_count per kfd\_dev, move decrement to kfd\_process\_destroy\_pdds
and bug fix. (Philip Yang)

\[3966658.307702\] divide error: 0000 \[\#1\] SMP NOPTI
\[3966658.350818\]  i10nm\_edac
\[3966658.356318\] CPU: 124 PID: 38435 Comm: kworker/124:0 Kdump: loaded Tainted
\[3966658.356890\] Workqueue: kfd\_process\_wq kfd\_process\_wq\_release \[amdgpu\]
\[3966658.362839\]  nfit
\[3966658.366457\] RIP: 0010:kfd\_get\_num\_sdma\_engines+0x17/0x40 \[amdgpu\]
\[3966658.366460\] Code: 00 00 e9 ac 81 02 00 66 66 2e 0f 1f 84 00 00 00 00 00 90 0f 1f 44 00 00 48 8b 4f 08 48 8b b7 00 01 00 00 8b 81 58 26 03 00 99 \<f7\> be b8 01 00 00 80 b9 70 2e 00 00 00 74 0b 83 f8 02 ba 02 00 00
\[3966658.380967\]  x86\_pkg\_temp\_thermal
\[3966658.391529\] RSP: 0018:ffffc900a0edfdd8 EFLAGS: 00010246
\[3966658.391531\] RAX: 0000000000000008 RBX: ffff8974e593b800 RCX: ffff888645900000
\[3966658.391531\] RDX: 0000000000000000 RSI: ffff888129154400 RDI: ffff888129151c00
\[3966658.391532\] RBP: ffff8883ad79d400 R08: 0000000000000000 R09: ffff8890d2750af4
\[3966658.391532\] R10: 0000000000000018 R11: 0000000000000018 R12: 0000000000000000
\[3966658.391533\] R13: ffff8883ad79d400 R14: ffffe87ff662ba00 R15: ffff8974e593b800
\[3966658.391533\] FS:  0000000000000000(0000) GS:ffff88fe7f600000(0000) knlGS:0000000000000000
\[3966658.391534\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[3966658.391534\] CR2: 0000000000d71000 CR3: 000000dd0e970004 CR4: 0000000002770ee0
\[3966658.391535\] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
\[3966658.391535\] DR3: 0000000000000000 DR6: 00000000fffe07f0 DR7: 0000000000000400
\[3966658.391536\] PKRU: 55555554
\[3966658.391536\] Call Trace:
\[3966658.391674\]  deallocate\_sdma\_queue+0x38/0xa0 \[amdgpu\]
\[3966658.391762\]  process\_termination\_cpsch+0x1ed/0x480 \[amdgpu\]
\[3966658.399754\]  intel\_powerclamp
\[3966658.402831\]  kfd\_process\_dequeue\_from\_all\_devices+0x5b/0xc0 \[amdgpu\]
\[3966658.402908\]  kfd\_process\_wq\_release+0x1a/0x1a0 \[amdgpu\]
\[3966658.410516\]  coretemp
\[3966658.434016\]  process\_one\_work+0x1ad/0x380
\[3966658.434021\]  worker\_thread+0x49/0x310
\[3966658.438963\]  kvm\_intel
\[3966658.446041\]  ? process\_one\_work+0x380/0x380
\[3966658.446045\]  kthread+0x118/0x140
\[3966658.446047\]  ? \_\_kthread\_bind\_mask+0x60/0x60
\[3966658.446050\]  ret\_from\_fork+0x1f/0x30
\[3966658.446053\] Modules linked in: kpatch\_20765354(OEK)
\[3966658.455310\]  kvm
\[3966658.464534\]  mptcp\_diag xsk\_diag raw\_diag unix\_diag af\_packet\_diag netlink\_diag udp\_diag act\_pedit act\_mirred act\_vlan cls\_flower kpatch\_21951273(OEK) kpatch\_18424469(OEK) kpatch\_19749756(OEK)
\[3966658.473462\]  idxd\_mdev
\[3966658.482306\]  kpatch\_17971294(OEK) sch\_ingress xt\_conntrack amdgpu(OE) amdxcp(OE) amddrm\_buddy(OE) amd\_sched(OE) amdttm(OE) amdkcl(OE) intel\_ifs iptable\_mangle tcm\_loop target\_core\_pscsi tcp\_diag target\_core\_file inet\_diag target\_core\_iblock target\_core\_user target\_core\_mod coldpgs kpatch\_18383292(OEK) ip6table\_nat ip6table\_filter ip6\_tables ip\_set\_hash\_ipportip ip\_set\_hash\_ipportnet ip\_set\_hash\_ipport ip\_set\_bitmap\_port xt\_comment iptable\_nat nf\_nat iptable\_filter ip\_tables ip\_set ip\_vs\_sh ip\_vs\_wrr ip\_vs\_rr ip\_vs nf\_conntrack nf\_defrag\_ipv6 nf\_defrag\_ipv4 sn\_core\_odd(OE) i40e overlay binfmt\_misc tun bonding(OE) aisqos(OE) aisqo
---truncated---

## Affected and fixed versions

- Linux: \>= 0c7315e7d5ef9b36ca4db32ffeb34a187cbaf231, \< 3385a1def2df45ac04a70532dfcd20d9eeac9fbb; \>= 0c7315e7d5ef9b36ca4db32ffeb34a187cbaf231, \< 536d80f660ec12058e461f4db387ea42bee9250d; \>= 0c7315e7d5ef9b36ca4db32ffeb34a187cbaf231, \< 45da20e00d5da842e17dfc633072b127504f0d0e (cvelist)
- Linux: 6.5 (cvelist)

## Mitigation

- Upgrade Linux to 45da20e00d5da842e17dfc633072b127504f0d0e or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-68174.md
Affected: Linux >= 0c7315e7d5ef9b36ca4db32ffeb34a187cbaf231, < 3385a1def2df45ac04a70532dfcd20d9eeac9fbb; >= 0c7315e7d5ef9b36ca4db32ffeb34a187cbaf231, < 536d80f660ec12058e461f4db387ea42bee9250d; >= 0c7315e7d5ef9b36ca4db32ffeb34a187cbaf231, < 45da20e00d5da842e17dfc633072b127504f0d0e; Linux 6.5
Fixed in: Linux 3385a1def2df45ac04a70532dfcd20d9eeac9fbb, Linux 536d80f660ec12058e461f4db387ea42bee9250d, Linux 45da20e00d5da842e17dfc633072b127504f0d0e

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-2025-68174 being exploited?

There is no confirmed exploitation: CVE-2025-68174 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-2025-68174?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-68174?

Linux \>= 0c7315e7d5ef9b36ca4db32ffeb34a187cbaf231, \< 3385a1def2df45ac04a70532dfcd20d9eeac9fbb; \>= 0c7315e7d5ef9b36ca4db32ffeb34a187cbaf231, \< 536d80f660ec12058e461f4db387ea42bee9250d; \>= 0c7315e7d5ef9b36ca4db32ffeb34a187cbaf231, \< 45da20e00d5da842e17dfc633072b127504f0d0e; Linux 6.5.

### Is there a fix for CVE-2025-68174?

Yes. Fixed in Linux 3385a1def2df45ac04a70532dfcd20d9eeac9fbb, Linux 536d80f660ec12058e461f4db387ea42bee9250d, Linux 45da20e00d5da842e17dfc633072b127504f0d0e. Upgrade Linux to 45da20e00d5da842e17dfc633072b127504f0d0e or later.

### How do I check if I'm affected by CVE-2025-68174?

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

- other: <https://git.kernel.org/stable/c/3385a1def2df45ac04a70532dfcd20d9eeac9fbb>
- other: <https://git.kernel.org/stable/c/536d80f660ec12058e461f4db387ea42bee9250d>
- other: <https://git.kernel.org/stable/c/45da20e00d5da842e17dfc633072b127504f0d0e>

## 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-2025-68174>

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