Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-38594

published high CVSS 3.1 · 7.8

iommu/vt-d: Fix UAF on sva unbind with pending IOPFs

Published
19 Aug 2025, 17:03:19 UTC
Updated
05 Aug 2026, 12:03:16 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux17fce9d2336d952b95474248303e5e7d9777f2e0 to < c68332b7ee893292bba6e87d31ef2080c066c65d · 17fce9d2336d952b95474248303e5e7d9777f2e0 to < f0b9d31c6edd50a6207489cd1bd4ddac814b9cd2 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.16 (affected) · 0 to < 6.16 (unaffected · semver) · 6.16.1 through 6.16.* (unaffected · semver) · 6.17 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: iommu/vt-d: Fix UAF on sva unbind with pending IOPFs Commit 17fce9d2336d ("iommu/vt-d: Put iopf enablement in domain attach path") disables IOPF on device by removing the device from its IOMMU's IOPF queue when the last IOPF-capable domain is detached from the device. Unfortunately, it did this in a wrong place where there are still pending IOPFs. As a result, a use-after-free error is potentially triggered and eventually a kernel panic with a kernel trace similar to the following: refcount_t: underflow; use-after-free. WARNING: CPU: 3 PID: 313 at lib/refcount.c:28 refcount_warn_saturate+0xd8/0xe0 Workqueue: iopf_queue/dmar0-iopfq iommu_sva_handle_iopf Call Trace: <TASK> iopf_free_group+0xe/0x20 process_one_work+0x197/0x3d0 worker_thread+0x23a/0x350 ? rescuer_thread+0x4a0/0x4a0 kthread+0xf8/0x230 ? finish_task_switch.isra.0+0x81/0x260 ? kthreads_online_cpu+0x110/0x110 ? kthreads_online_cpu+0x110/0x110 ret_from_fork+0x13b/0x170 ? kthreads_online_cpu+0x110/0x110 ret_from_fork_asm+0x11/0x20 </TASK> ---[ end trace 0000000000000000 ]--- The intel_pasid_tear_down_entry() function is responsible for blocking hardware from generating new page faults and flushing all in-flight ones. Therefore, moving iopf_for_domain_remove() after this function should resolve this.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerable path is entered from a local process closing an SVA-bound accelerator file descriptor (/dev/dsa/wqX.Y) or via iommufd/VFIO ioctls; no network or adjacent-network reachability exists. AC:L - The attacker controls both sides of the race — generating pending IOPFs by submitting descriptors against not-present pages, then immediately triggering unbind via close() — and can repeat the loop indefinitely until the workqueue window is hit. PR:L - Requires only an unprivileged local process holding an idxd shared-work-queue fd, which is the intended usage model for DSA/IAA SVA (userspace ENQCMD submission); no root or capability is needed once the device node is accessible. UI:N - The attacking process performs the bind, fault generation, and unbind entirely on its own; no victim action is involved. S:U - The corruption is confined to kernel heap objects within the host kernel's own security authority; no DMA/IOMMU translation isolation or VM boundary is bypassed by the bug itself. C:H - The freed iopf_group is reused by the worker, which dereferences attacker-reallocatable pointers (fault_param->dev, attach_handle->domain->mm), giving an arbitrary kernel-memory read primitive and full disclosure potential. I:H - A double-freed generic-slab object whose fields drive an indirect call through dev_iommu_ops(dev)->page_response() provides heap-spray-based control-flow hijacking and arbitrary write, enabling privilege escalation. A:H - The reported real-world outcome is a refcount underflow WARNING followed by kernel panic from the iopf workqueue; any use-after-free of this kind reliably crashes the system.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 17fce9d2336d952b95474248303e5e7d9777f2e0 to < c68332b7ee893292bba6e87d31ef2080c066c65d (affected · git)17fce9d2336d952b95474248303e5e7d9777f2e0 to < f0b9d31c6edd50a6207489cd1bd4ddac814b9cd2 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.16 (affected)0 to < 6.16 (unaffected · semver)6.16.1 through 6.16.* (unaffected · semver)6.17 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

2

Provider assertions

1

Linux · cna

iommu/vt-d: Fix UAF on sva unbind with pending IOPFs

Provenance

Schema
5.2
Searchable
yes
Content hash
105d8384369fd054593ed8cebbf40427cb81b8c68a5594d72756d4744a202b04
Ingested
23 Sep 2026, 08:46:47 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected