VDB

CVE-2025-39899

CVE-2025-39899 PUBLISHED CVSS 5.5 MEDIUM

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.

PackageEcosystemFixed in
kernel6.12-libbpfAmazon Linux1:6.12.46-66.121.amzn2023
kernel6.12-tools-develAmazon Linux1:6.12.46-66.121.amzn2023
python3-perf6.12Amazon Linux1:6.12.46-66.121.amzn2023
LinuxLinuxbd1ee62759d0bd4d6b909731c076c230ac89d61e, b051f707018967ea8f697d790a1ed8c443f63812, 9614d8bee66387501f48718fa306e17f2aa3f2f3

Risk scores

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

Affected products

VendorProductVersions
LinuxLinuxadef440691bab824e39c1b17382322d195e1fab0, adef440691bab824e39c1b17382322d195e1fab0, adef440691bab824e39c1b17382322d195e1fab0
LinuxLinux6.8, 0, 6.12.46
amazon:2023kernel6.12-libbpf0
amazon:2023kernel6.12-tools-devel0
amazon:2023python3-perf6.120
LinuxLinux6.16.6, *, *
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.12-modules-extra0
amazon:2023perf6.120
amazon:2023kernel6.12-headers0
amazon:2023kernel6.12-devel0
amazon:2023kernel6.120
amazon:2023kernel6.12-tools0
linuxlinux_kernel6.8, 6.8, 6.8
amazon:2023kernel-livepatch-6.12.46-66.1210
amazon:2023kernel6.12-libbpf-static0
amazon:2023bpftool6.120
amazon:2023kernel6.12-libbpf-devel0

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

References

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