VDB

CVE-2025-39961

CVE-2025-39961 PUBLISHED CVSS 8.8 HIGH

iommu/amd/pgtbl: Fix possible race while increase page table level

Reported by linux · Published October 9, 2025

In the Linux kernel, the following vulnerability has been resolved: iommu/amd/pgtbl: Fix possible race while increase page table level The AMD IOMMU host page table implementation supports dynamic page table levels (up to 6 levels), starting with a 3-level configuration that expands based on IOVA address. The kernel maintains a root pointer and current page table level to enable proper page table walks in alloc_pte()/fetch_pte() operations. The IOMMU IOVA allocator initially starts with 32-bit address and onces its exhuasted it switches to 64-bit address (max address is determined based on IOMMU and device DMA capability). To support larger IOVA, AMD IOMMU driver increases page table level. But in unmap path (iommu_v1_unmap_pages()), fetch_pte() reads pgtable->[root/mode] without lock. So its possible that in exteme corner case, when increase_address_space() is updating pgtable->[root/mode], fetch_pte() reads wrong page table level (pgtable->mode). It does compare the value with level encoded in page table and returns NULL. This will result is iommu_unmap ops to fail and upper layer may retry/log WARN_ON. CPU 0 CPU 1 ------ ------ map pages unmap pages alloc_pte() -> increase_address_space() iommu_v1_unmap_pages() -> fetch_pte() pgtable->root = pte (new root value) READ pgtable->[mode/root] Reads new root, old mode Updates mode (pgtable->mode += 1) Since Page table level updates are infrequent and already synchronized with a spinlock, implement seqcount to enable lock-free read operations on the read path.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.12-libbpf-develAmazon Linux1:6.12.53-69.119.amzn2023
kernel6.12-modules-extraAmazon Linux1:6.12.53-69.119.amzn2023
kernel6.12-modules-extra-commonAmazon Linux1:6.12.53-69.119.amzn2023
kernel-modules-extraAmazon Linux1:6.1.175-219.357.amzn2023
kernel-livepatch-6.1.175-219.357Amazon Linux1:1.0-0.amzn2023
kernel-modules-extra-commonAmazon Linux1:6.1.175-219.357.amzn2023
perf6.12Amazon Linux1:6.12.53-69.119.amzn2023
kernel6.12Amazon Linux1:6.12.53-69.119.amzn2023
python3-perfAmazon Linux1:6.1.175-219.357.amzn2023
kernel6.12-develAmazon Linux1:6.12.53-69.119.amzn2023
kernelAmazon Linux1:6.1.175-219.357.amzn2023
python3-perf6.12Amazon Linux1:6.12.53-69.119.amzn2023

4 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
8.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux754265bcab78a9014f0f99cd35e0d610fcd7dfa7, 754265bcab78a9014f0f99cd35e0d610fcd7dfa7, 754265bcab78a9014f0f99cd35e0d610fcd7dfa7
LinuxLinux5.3, 0, 6.6.108
amazon:2023kernel6.12-libbpf-devel0
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel-modules-extra0
amazon:2023kernel-livepatch-6.1.175-219.3570
amazon:2023kernel-modules-extra-common0
amazon:2023perf6.120
amazon:2023kernel6.120
amazon:2023python3-perf0
amazon:2023kernel6.12-devel0
amazon:2023kernel0
amazon:2023python3-perf6.120
amazon:2023kernel-livepatch-6.12.53-69.1190
amazon:2023kernel-headers0
LinuxLinux754265bcab78a9014f0f99cd35e0d610fcd7dfa7, 5.2.17, 4.19.75
amazon:2023kernel6.12-libbpf0
amazon:2023kernel-devel0
amazon:2023bpftool0

…and 9 more

Timeline

  • Oct 9, 2025 Coalition ESS Score (5 in total, the first dated here)
  • Oct 9, 2025 CVE Published
  • Oct 10, 2025 EPSS Score (30 in total, the first dated here)
  • Dec 15, 2025 Security Advisory (115 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (38 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-39961
vulnetix vdb fixes CVE-2025-39961

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-39961/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›