CVE-2024-26617
published high CVSS 3.1 · 7.8fs/proc/task_mmu: move mmu notification mechanism inside mm lock
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux52526ca7fdb905a768a93f8faa418e9b988fc34b to < 05509adf297924f51e1493aa86f9fcde1433ed80 · 52526ca7fdb905a768a93f8faa418e9b988fc34b to < 4cccb6221cae6d020270606b9e52b1678fc8b71a · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.7 (affected) · 0 to < 6.7 (unaffected · semver) · 6.7.3 through 6.7.* (unaffected · semver) · 6.8 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: fs/proc/task_mmu: move mmu notification mechanism inside mm lock Move mmu notification mechanism inside mm lock to prevent race condition in other components which depend on it. The notifier will invalidate memory range. Depending upon the number of iterations, different memory ranges would be invalidated. The following warning would be removed by this patch: WARNING: CPU: 0 PID: 5067 at arch/x86/kvm/../../../virt/kvm/kvm_main.c:734 kvm_mmu_notifier_change_pte+0x860/0x960 arch/x86/kvm/../../../virt/kvm/kvm_main.c:734 There is no behavioural and performance change with this patch when there is no component registered with the mmu notifier. [[email protected]: narrow the scope of `range', per Sean]
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerability is reached through the `PAGEMAP_SCAN` ioctl on `/proc/<pid>/pagemap`, which requires local access to issue syscalls on the target machine. There is no network-facing path to `do_pagemap_scan()`. AC:L - The attacker controls both sides of the race: the invalidation window is opened purely by setting `PM_SCAN_WP_MATCHING` and can be held open arbitrarily long by pointing the output `vec` buffer at a userfaultfd-backed page so `pagemap_scan_flush_buffer()`'s `copy_to_user()` blocks, while a sibling thread performs the racing `mmu_notifier_register()` (e.g. `KVM_CREATE_VM`). syzbot reproduced it, confirming reliable triggerability. PR:L - Any unprivileged user can open `/proc/self/pagemap` (`proc_mem_open` with `PTRACE_MODE_READ` on one's own task always succeeds) and there is no capability check in `do_pagemap_cmd()`, `do_pagemap_scan()`, or `pagemap_scan_get_args()`. No user namespace or CAP_SYS_ADMIN is needed. UI:N - The attacker performs the entire sequence — ioctl plus concurrent notifier registration — from its own threads. No victim action is involved. S:U - The vulnerable code and the corrupted state (kernel mm/KVM MMU-notifier bookkeeping) are both in the host kernel, the same security authority as the attacking local process. Standard kernel privilege/DoS boundary. C:H - Breaking the start/end pairing leaves secondary MMUs holding stale references to old PFNs — KVM's own comment in `kvm_change_spte_gfn()` states the shortcut is only safe because the invariant holds, otherwise "KVM ... hold[s] references to the old PFN." Guests and DMA-capable devices (ODP/SVA/HMM) retain mappings to host pages already released and reallocated, enabling disclosure of arbitrary kernel/other-tenant memory. I:H - The same stale writable secondary-MMU/DMA mappings permit writes into freed and reused host pages, and the bug directly corrupts KVM's `mmu_invalidate_in_progress`/`mn_active_invalidate_count` into states the code asserts are impossible. That combination is exploitable memory corruption, not just a bookkeeping glitch. A:H - Reachable outcomes include a kernel `BUG_ON(kvm->mmu_invalidate_in_progress < 0)` oops, the `WARN_ON_ONCE` at `kvm_main.c:732` (panic under `panic_on_warn`), an unkillable `TASK_UNINTERRUPTIBLE` hang in `kvm_swap_active_memslots()` holding `slots_lock`, and permanent guest fault livelock via `mmu_invalidate_retry()`.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 52526ca7fdb905a768a93f8faa418e9b988fc34b to < 05509adf297924f51e1493aa86f9fcde1433ed80 (affected · git)52526ca7fdb905a768a93f8faa418e9b988fc34b to < 4cccb6221cae6d020270606b9e52b1678fc8b71a (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.7 (affected)0 to < 6.7 (unaffected · semver)6.7.3 through 6.7.* (unaffected · semver)6.8 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
3Linux · cna
fs/proc/task_mmu: move mmu notification mechanism inside mm lock
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b0fdedae55ddd4b04a73abdc9f5bd63a79052d1f4227feb1c80a58e0e29535ed
- Ingested
- 23 Sep 2026, 08:20:34 UTC
- Source record
- Official CVE record