CVE-2025-22090
x86/mm/pat: Fix VM_PAT handling when fork() fails in copy_page_range()
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < a6623712ba8449876f0b3de9462831523fb851e4; >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < b07398e8a5da517083f5c3f2daa8f6681b48ab28; >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < 8d6373f83f367dbed316ddeb178130a3a64b5b67; >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < da381c33f3aa6406406c9fdf07b8b0b63e0ce722; >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < de6185b8892d88142ef69768fe4077cbf40109c0; >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < dc84bc2aba85a1508f04a936f9f9a15f64ebfb31
- Anyone running Linux 2.6.29
Vulnerability facts
- Affected
- Linux >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < a6623712ba8449876f0b3de9462831523fb851e4; >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < b07398e8a5da517083f5c3f2daa8f6681b48ab28; >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < 8d6373f83f367dbed316ddeb178130a3a64b5b67; >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < da381c33f3aa6406406c9fdf07b8b0b63e0ce722; >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < de6185b8892d88142ef69768fe4077cbf40109c0; >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < dc84bc2aba85a1508f04a936f9f9a15f64ebfb31; Linux 2.6.29
- Fixed in
- Linux 8d6373f83f367dbed316ddeb178130a3a64b5b67
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.3 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.30% chance of exploitation in 30 days (percentile 16, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: x86/mm/pat: Fix VM_PAT handling when fork() fails in copy_page_range() If track_pfn_copy() fails, we already added the dst VMA to the maple tree. As fork() fails, we'll cleanup the maple tree, and stumble over the dst VMA for which we neither performed any reservation nor copied any page tables. Consequently untrack_pfn() will see VM_PAT and try obtaining the PAT information from the page table -- which fails because the page table was not copied. The easiest fix would be to simply clear the VM_PAT flag of the dst VMA if track_pfn_copy() fails. However, the whole thing is about "simply" clearing the VM_PAT flag is shaky as well: if we passed track_pfn_copy() and performed a reservation, but copying the page tables fails, we'll simply clear the VM_PAT flag, not properly undoing the reservation ... which is also wrong. So let's fix it properly: set the VM_PAT flag only if the reservation succeeded (leaving it clear initially), and undo the reservation if anything goes wrong while copying the page tables: clearing the VM_PAT flag after undoing the reservation. Note that any copied page table entries will get zapped when the VMA will get removed later, after copy_page_range() succeeded; as VM_PAT is not set then, we won't try cleaning VM_PAT up once more and untrack_pfn() will be happy. Note that leaving these page tables in place without a reservation is not a problem, as we are aborting fork(); this process will never run. A reproducer can trigger this usually at the first try: https://gitlab.com/davidhildenbrand/scratchspace/-/raw/main/reproducers/pat_fork.c WARNING: CPU: 26 PID: 11650 at arch/x86/mm/pat/memtype.c:983 get_pat_info+0xf6/0x110 Modules linked in: ... CPU: 26 UID: 0 PID: 11650 Comm: repro3 Not tainted 6.12.0-rc5+ #92 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-2.fc40 04/01/2014 RIP: 0010:get_pat_info+0xf6/0x110 ... Call Trace: <TASK> ... untrack_pfn+0x52/0x110 unmap_single_vma+0xa6/0xe0 unmap_vmas+0x105/0x1f0 exit_mmap+0xf6/0x460 __mmput+0x4b/0x120 copy_process+0x1bf6/0x2aa0 kernel_clone+0xab/0x440 __do_sys_clone+0x66/0x90 do_syscall_64+0x95/0x180 Likely this case was missed in: d155df53f310 ("x86/mm/pat: clear VM_PAT if copy_p4d_range failed") ... and instead of undoing the reservation we simply cleared the VM_PAT flag. Keep the documentation of these functions in include/linux/pgtable.h, one place is more than sufficient -- we should clean that up for the other functions like track_pfn_remap/untrack_pfn separately.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < a6623712ba8449876f0b3de9462831523fb851e4; >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < b07398e8a5da517083f5c3f2daa8f6681b48ab28; >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < 8d6373f83f367dbed316ddeb178130a3a64b5b67; >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < da381c33f3aa6406406c9fdf07b8b0b63e0ce722; >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < de6185b8892d88142ef69768fe4077cbf40109c0; >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < dc84bc2aba85a1508f04a936f9f9a15f64ebfb31 | — | cvelist |
| Linux | 2.6.29 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-22090. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-22090.md Affected: Linux >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < a6623712ba8449876f0b3de9462831523fb851e4; >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < b07398e8a5da517083f5c3f2daa8f6681b48ab28; >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < 8d6373f83f367dbed316ddeb178130a3a64b5b67; >= 2ab640379a0ab4cef746ced… Fixed in: Linux 8d6373f83f367dbed316ddeb178130a3a64b5b67 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/b07398e8a5da517083f5c3f2daa8f6681b48ab28
- https://git.kernel.org/stable/c/8d6373f83f367dbed316ddeb178130a3a64b5b67
- https://git.kernel.org/stable/c/da381c33f3aa6406406c9fdf07b8b0b63e0ce722
- https://git.kernel.org/stable/c/de6185b8892d88142ef69768fe4077cbf40109c0
- https://git.kernel.org/stable/c/dc84bc2aba85a1508f04a936f9f9a15f64ebfb31
FAQ
Is CVE-2025-22090 being exploited?
There is no confirmed exploitation: CVE-2025-22090 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-22090?
High: CVSS 7.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-22090?
Linux >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < a6623712ba8449876f0b3de9462831523fb851e4; >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < b07398e8a5da517083f5c3f2daa8f6681b48ab28; >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < 8d6373f83f367dbed316ddeb178130a3a64b5b67; >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < da381c33f3aa6406406c9fdf07b8b0b63e0ce722; >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < de6185b8892d88142ef69768fe4077cbf40109c0; >= 2ab640379a0ab4cef746ced1d7e04a0941774bcb, < dc84bc2aba85a1508f04a936f9f9a15f64ebfb31; Linux 2.6.29.
Is there a fix for CVE-2025-22090?
Yes. Fixed in Linux 8d6373f83f367dbed316ddeb178130a3a64b5b67. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2025-22090?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.