Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-39775

MEDIUM 5.5EPSS 8%

mm/mremap: fix WARN with uffd that has remap events disabled

Mitigation

  • Upgrade Linux to 6.7 or later.

Who should check

  • Anyone running Linux >= 310ac886d68de661c3a334198d8604b722d7fdf8, < 1c15b4cd3a97aea013bdb18d9a55ca0384fbb8d4; >= 0cef0bb836e3cfe00f08f9606c72abd72fe78ca3, < d70ca21f7bff162a5afae1ddd6f4107adf05ae23; >= 0cef0bb836e3cfe00f08f9606c72abd72fe78ca3, < 772e5b4a5e8360743645b9a466842d16092c4f94; 96fed9f20481d07eba8a7fe93bc77abef178198c; 8e2f6ba256dd1e590addc48e6e9577bf39c482f2; >= 6.12.11, < 6.12.114; >= 6.1.191, < 6.2; >= 6.6.160, < 6.7
  • Anyone running Linux 6.13

Vulnerability facts

Affected
Linux >= 310ac886d68de661c3a334198d8604b722d7fdf8, < 1c15b4cd3a97aea013bdb18d9a55ca0384fbb8d4; >= 0cef0bb836e3cfe00f08f9606c72abd72fe78ca3, < d70ca21f7bff162a5afae1ddd6f4107adf05ae23; >= 0cef0bb836e3cfe00f08f9606c72abd72fe78ca3, < 772e5b4a5e8360743645b9a466842d16092c4f94; 96fed9f20481d07eba8a7fe93bc77abef178198c; 8e2f6ba256dd1e590addc48e6e9577bf39c482f2; >= 6.12.11, < 6.12.114; >= 6.1.191, < 6.2; >= 6.6.160, < 6.7; Linux 6.13
Fixed in
Linux 1c15b4cd3a97aea013bdb18d9a55ca0384fbb8d4, Linux 772e5b4a5e8360743645b9a466842d16092c4f94, Linux 6.12.114, Linux 6.2, Linux 6.7
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.23% chance of exploitation in 30 days (percentile 8, 2026-11-26)
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: mm/mremap: fix WARN with uffd that has remap events disabled Registering userfaultd on a VMA that spans at least one PMD and then mremap()'ing that VMA can trigger a WARN when recovering from a failed page table move due to a page table allocation error. The code ends up doing the right thing (recurse, avoiding moving actual page tables), but triggering that WARN is unpleasant: WARNING: CPU: 2 PID: 6133 at mm/mremap.c:357 move_normal_pmd mm/mremap.c:357 [inline] WARNING: CPU: 2 PID: 6133 at mm/mremap.c:357 move_pgt_entry mm/mremap.c:595 [inline] WARNING: CPU: 2 PID: 6133 at mm/mremap.c:357 move_page_tables+0x3832/0x44a0 mm/mremap.c:852 Modules linked in: CPU: 2 UID: 0 PID: 6133 Comm: syz.0.19 Not tainted 6.17.0-rc1-syzkaller-00004-g53e760d89498 #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:move_normal_pmd mm/mremap.c:357 [inline] RIP: 0010:move_pgt_entry mm/mremap.c:595 [inline] RIP: 0010:move_page_tables+0x3832/0x44a0 mm/mremap.c:852 Code: ... RSP: 0018:ffffc900037a76d8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000032930007 RCX: ffffffff820c6645 RDX: ffff88802e56a440 RSI: ffffffff820c7201 RDI: 0000000000000007 RBP: ffff888037728fc0 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000032930007 R11: 0000000000000000 R12: 0000000000000000 R13: ffffc900037a79a8 R14: 0000000000000001 R15: dffffc0000000000 FS: 000055556316a500(0000) GS:ffff8880d68bc000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30863fff CR3: 0000000050171000 CR4: 0000000000352ef0 Call Trace: <TASK> copy_vma_and_data+0x468/0x790 mm/mremap.c:1215 move_vma+0x548/0x1780 mm/mremap.c:1282 mremap_to+0x1b7/0x450 mm/mremap.c:1406 do_mremap+0xfad/0x1f80 mm/mremap.c:1921 __do_sys_mremap+0x119/0x170 mm/mremap.c:1977 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f00d0b8ebe9 Code: ... RSP: 002b:00007ffe5ea5ee98 EFLAGS: 00000246 ORIG_RAX: 0000000000000019 RAX: ffffffffffffffda RBX: 00007f00d0db5fa0 RCX: 00007f00d0b8ebe9 RDX: 0000000000400000 RSI: 0000000000c00000 RDI: 0000200000000000 RBP: 00007ffe5ea5eef0 R08: 0000200000c00000 R09: 0000000000000000 R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000002 R13: 00007f00d0db5fa0 R14: 00007f00d0db5fa0 R15: 0000000000000005 </TASK> The underlying issue is that we recurse during the original page table move, but not during the recovery move. Fix it by checking for both VMAs and performing the check before the pmd_none() sanity check. Add a new helper where we perform+document that check for the PMD and PUD level. Thanks to Harry for bisecting.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 310ac886d68de661c3a334198d8604b722d7fdf8, < 1c15b4cd3a97aea013bdb18d9a55ca0384fbb8d4; >= 0cef0bb836e3cfe00f08f9606c72abd72fe78ca3, < d70ca21f7bff162a5afae1ddd6f4107adf05ae23; >= 0cef0bb836e3cfe00f08f9606c72abd72fe78ca3, < 772e5b4a5e8360743645b9a466842d16092c4f94; 96fed9f20481d07eba8a7fe93bc77abef178198c; 8e2f6ba256dd1e590addc48e6e9577bf39c482f2; >= 6.12.11, < 6.12.114; >= 6.1.191, < 6.2; >= 6.6.160, < 6.7—cvelist
Linux6.13—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-39775. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39775.md
Affected: Linux >= 310ac886d68de661c3a334198d8604b722d7fdf8, < 1c15b4cd3a97aea013bdb18d9a55ca0384fbb8d4; >= 0cef0bb836e3cfe00f08f9606c72abd72fe78ca3, < d70ca21f7bff162a5afae1ddd6f4107adf05ae23; >= 0cef0bb836e3cfe00f08f9606c72abd72fe78ca3, < 772e5b4a5e8360743645b9a466842d16092c4f94; 96fed9f20481d07eba8a7fe93b…
Fixed in: Linux 1c15b4cd3a97aea013bdb18d9a55ca0384fbb8d4, Linux 772e5b4a5e8360743645b9a466842d16092c4f94, Linux 6.12.114, Linux 6.2, Linux 6.7

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

FAQ

Is CVE-2025-39775 being exploited?

There is no confirmed exploitation: CVE-2025-39775 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-39775?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2025-39775?

Linux >= 310ac886d68de661c3a334198d8604b722d7fdf8, < 1c15b4cd3a97aea013bdb18d9a55ca0384fbb8d4; >= 0cef0bb836e3cfe00f08f9606c72abd72fe78ca3, < d70ca21f7bff162a5afae1ddd6f4107adf05ae23; >= 0cef0bb836e3cfe00f08f9606c72abd72fe78ca3, < 772e5b4a5e8360743645b9a466842d16092c4f94; 96fed9f20481d07eba8a7fe93bc77abef178198c; 8e2f6ba256dd1e590addc48e6e9577bf39c482f2; >= 6.12.11, < 6.12.114; >= 6.1.191, < 6.2; >= 6.6.160, < 6.7; Linux 6.13.

Is there a fix for CVE-2025-39775?

Yes. Fixed in Linux 1c15b4cd3a97aea013bdb18d9a55ca0384fbb8d4, Linux 772e5b4a5e8360743645b9a466842d16092c4f94, Linux 6.12.114, Linux 6.2, Linux 6.7. Upgrade Linux to 6.7 or later.

How do I check if I'm affected by CVE-2025-39775?

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.

Sponsors