CVE-2025-39899
mm/userfaultfd: fix kmap_local LIFO ordering for CONFIG_HIGHPTE
Reported by linux · Published October 1, 2025
In the Linux kernel, the following vulnerability has been resolved: mm/userfaultfd: fix kmap_local LIFO ordering for CONFIG_HIGHPTE With CONFIG_HIGHPTE on 32-bit ARM, move_pages_pte() maps PTE pages using kmap_local_page(), which requires unmapping in Last-In-First-Out order. The current code maps dst_pte first, then src_pte, but unmaps them in the same order (dst_pte, src_pte), violating the LIFO requirement. This causes the warning in kunmap_local_indexed(): WARNING: CPU: 0 PID: 604 at mm/highmem.c:622 kunmap_local_indexed+0x178/0x17c addr \!= __fix_to_virt(FIX_KMAP_BEGIN + idx) Fix this by reversing the unmap order to respect LIFO ordering. This issue follows the same pattern as similar fixes: - commit eca6828403b8 ("crypto: skcipher - fix mismatch between mapping and unmapping order") - commit 8cf57c6df818 ("nilfs2: eliminate staggered calls to kunmap in nilfs_rename") Both of which addressed the same fundamental requirement that kmap_local operations must follow LIFO ordering.
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 | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| kernel6.12-tools-devel | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| python3-perf6.12 | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| Linux | Linux | bd1ee62759d0bd4d6b909731c076c230ac89d61e, b051f707018967ea8f697d790a1ed8c443f63812, 9614d8bee66387501f48718fa306e17f2aa3f2f3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | adef440691bab824e39c1b17382322d195e1fab0, adef440691bab824e39c1b17382322d195e1fab0, adef440691bab824e39c1b17382322d195e1fab0 |
| Linux | Linux | 6.8, 0, 6.12.46 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| Linux | Linux | 6.16.6, *, * |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| linux | linux_kernel | 6.8, 6.8, 6.8 |
| amazon:2023 | kernel-livepatch-6.12.46-66.121 | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
Timeline
- Sep 29, 2025 CVE Published
- Oct 1, 2025 EPSS Score (30 in total, the first dated here)
- Oct 4, 2025 Coalition ESS Score (10 in total, the first dated here)
- Oct 12, 2025 PoC Published (9 in total, the first dated here)
- Dec 15, 2025 Security Advisory (99 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (92 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-39899
vulnetix vdb fixes CVE-2025-39899
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-39899/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart