CVE-2025-39961
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-libbpf-devel | Amazon Linux | 1:6.12.53-69.119.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 1:6.12.53-69.119.amzn2023 |
| kernel6.12-modules-extra-common | Amazon Linux | 1:6.12.53-69.119.amzn2023 |
| kernel-modules-extra | Amazon Linux | 1:6.1.175-219.357.amzn2023 |
| kernel-livepatch-6.1.175-219.357 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 1:6.1.175-219.357.amzn2023 |
| perf6.12 | Amazon Linux | 1:6.12.53-69.119.amzn2023 |
| kernel6.12 | Amazon Linux | 1:6.12.53-69.119.amzn2023 |
| python3-perf | Amazon Linux | 1:6.1.175-219.357.amzn2023 |
| kernel6.12-devel | Amazon Linux | 1:6.12.53-69.119.amzn2023 |
| kernel | Amazon Linux | 1:6.1.175-219.357.amzn2023 |
| python3-perf6.12 | Amazon Linux | 1:6.12.53-69.119.amzn2023 |
4 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 754265bcab78a9014f0f99cd35e0d610fcd7dfa7, 754265bcab78a9014f0f99cd35e0d610fcd7dfa7, 754265bcab78a9014f0f99cd35e0d610fcd7dfa7 |
| Linux | Linux | 5.3, 0, 6.6.108 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-livepatch-6.1.175-219.357 | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel-livepatch-6.12.53-69.119 | 0 |
| amazon:2023 | kernel-headers | 0 |
| Linux | Linux | 754265bcab78a9014f0f99cd35e0d610fcd7dfa7, 5.2.17, 4.19.75 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | bpftool | 0 |
…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