CVE-2026-99669
published high CVSS 3.1 · 7.8mm/huge_memory: fix truncate racing with PMD zapping
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux79d8c89baa10612c1675972a632c65cdbe0936f6 to < 37a32c760eb709440bb9cd6cd6852022850a542b · 13f4910d81b62a214cdb28b47237198fa96078a2 to < 664d37982d094623f5c3ac0373d3751401b10020 · 7a4c3f7b47ba34b021a7747081f330bfb76a4271 to < b72f49d669840a87d0a811b3f16e14fe597fc3ce · 6e904f9e8cb0e39f60e1cdbea679f89346a563c2 to < df588ea0cf5dce9ee7cc1689e40a6940dc25429a · fd720d3906877b3d2118cd480027e4bc6648f0c5 to < e80c3d6e1dc80bae76471ea5b10bf625168f14c6 · effe3cc6d4fdd407457eb30f7b0ef094393f0d64 to < d08f371175e5ad3bea97983ef446e416e4fb32e2 · fe6cf984939d8e12cb33a99673c8d026c5135e68 to < a5786ec7ba7967433207f20214ff75768497a2c9 · fe6cf984939d8e12cb33a99673c8d026c5135e68 to < e6a07d29b0a60f3a4cfe77fe34eeb4b3fb38d6c4 · 9435cddf1378d149d826bd7bd1448a44bf96868d · 5.10.273 to < 5.10.275 · 5.15.224 to < 5.15.226 · 6.1.191 to < 6.1.193 · 6.6.160 to < 6.6.163 · 6.12.114 to < 6.12.119 · 6.18.52 to < 6.18.65 · 7.2.5 to < 7.3 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux7.3 (affected) · 0 to < 7.3 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.5 through 7.3.* (unaffected · semver) · 7.4-rc2 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected; Pending Fix | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Show 12 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Description
In the Linux kernel, the following vulnerability has been resolved: mm/huge_memory: fix truncate racing with PMD zapping zap_huge_pmd_folio() removes the rmap before calling folio_mark_dirty(). If this was the last mapping, truncation can skip unmapping the folio and proceed without waiting for the PMD lock, racing with dirtying. ifs_set_range_dirty() can oops if MADV_DONTNEED races with ftruncate() on XFS, when we get the folio set dirty after it was found to not be mapped anymore. Move folio_mark_dirty() and folio_mark_accessed() before rmap removal, matching the PTE zap path. This keeps the folio mapped while updating its state, so truncation must wait for the page table lock. Fix generated by an LLM and sent by Chris Mason in private. [ david: simplify comment and description ]
Related advisories
Vendor advisories explicitly linked to 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 - madvise(MADV_DONTNEED) on a local mapping reaches the bug: do_madvise() to madvise_dontneed_single_vma() to zap_vma_range_batched() to zap_pmd_range() to zap_huge_pmd() to zap_huge_pmd_folio(), which calls folio_remove_rmap_pmd() before folio_mark_dirty(). The paired ftruncate() is a local syscall on that same file; no remote protocol field supplies the triggering state. AC:L - The caller builds both sides: an XFS write allocates a PMD-order folio (iomap_get_folio() via fgf_set_order, then do_set_pmd() on fault), a store dirties the PMD, then one thread issues madvise(MADV_DONTNEED) while another issues ftruncate(). After folio_remove_rmap_pmd() clears the last mapcount, truncate_cleanup_folio() calls folio_invalidate()/ifs_free() and skips unmap_mapping_folio(), so zap_huge_pmd()'s PMD lock stays uncontended. PR:L - do_madvise() and do_ftruncate() need only a file the caller can write: do_ftruncate() requires FMODE_WRITE and vfs_truncate() checks inode_permission(MAY_WRITE). No capability is checked before zap_huge_pmd_folio() or xfs_vn_setattr_size(). UI:N - The attacker mmaps, writes, and truncates a file they created, from threads they run. zap_huge_pmd_folio() races truncate_cleanup_folio() with no other user opening the file. S:U - The corrupted object is an iomap_folio_state in the same kernel that runs the attacker's madvise and ftruncate. zap_huge_pmd_folio() and ifs_free() execute in that host kernel, which is ordinary kernel privilege-escalation scope. C:H - ifs_set_range_dirty() loads ifs->state_lock and read-modify-writes ifs->state after ifs_free() has kfree'd that iomap_folio_state, while folio->mapping is still set (filemap_remove_folio() runs later in truncate_inode_folio()). Reusing the slab slot turns that use into a read and a corruption of a kernel object that can disclose memory. I:H - With a 2MB folio and 4K blocks, ifs_set_range_dirty() bitmap_set()s 512 bits (64 bytes of 0xff) at bit offset blks_per_folio in the freed iomap_folio_state and writes the spinlock word. That heap write overwrites a reallocated slab object. A:H - Using the kfree'd iomap_folio_state, or loading folio->mapping->host in ifs_set_range_dirty() after filemap_remove_folio() cleared it, oopses the kernel. That is the MADV_DONTNEED versus XFS ftruncate crash fixed by reordering zap_huge_pmd_folio().
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 79d8c89baa10612c1675972a632c65cdbe0936f6 to < 37a32c760eb709440bb9cd6cd6852022850a542b (affected · git)13f4910d81b62a214cdb28b47237198fa96078a2 to < 664d37982d094623f5c3ac0373d3751401b10020 (affected · git)7a4c3f7b47ba34b021a7747081f330bfb76a4271 to < b72f49d669840a87d0a811b3f16e14fe597fc3ce (affected · git)6e904f9e8cb0e39f60e1cdbea679f89346a563c2 to < df588ea0cf5dce9ee7cc1689e40a6940dc25429a (affected · git)fd720d3906877b3d2118cd480027e4bc6648f0c5 to < e80c3d6e1dc80bae76471ea5b10bf625168f14c6 (affected · git)effe3cc6d4fdd407457eb30f7b0ef094393f0d64 to < d08f371175e5ad3bea97983ef446e416e4fb32e2 (affected · git)fe6cf984939d8e12cb33a99673c8d026c5135e68 to < a5786ec7ba7967433207f20214ff75768497a2c9 (affected · git)fe6cf984939d8e12cb33a99673c8d026c5135e68 to < e6a07d29b0a60f3a4cfe77fe34eeb4b3fb38d6c4 (affected · git)9435cddf1378d149d826bd7bd1448a44bf96868d (affected · git)5.10.273 to < 5.10.275 (affected · semver)5.15.224 to < 5.15.226 (affected · semver)6.1.191 to < 6.1.193 (affected · semver)6.6.160 to < 6.6.163 (affected · semver)6.12.114 to < 6.12.119 (affected · semver)6.18.52 to < 6.18.65 (affected · semver)7.2.5 to < 7.3 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 7.3 (affected)0 to < 7.3 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.5 through 7.3.* (unaffected · semver)7.4-rc2 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/37a32c760eb709440bb9cd6cd6852022850a542b
- https://git.kernel.org/stable/c/664d37982d094623f5c3ac0373d3751401b10020
- https://git.kernel.org/stable/c/a5786ec7ba7967433207f20214ff75768497a2c9
- https://git.kernel.org/stable/c/b72f49d669840a87d0a811b3f16e14fe597fc3ce
- https://git.kernel.org/stable/c/d08f371175e5ad3bea97983ef446e416e4fb32e2
- https://git.kernel.org/stable/c/df588ea0cf5dce9ee7cc1689e40a6940dc25429a
- https://git.kernel.org/stable/c/e6a07d29b0a60f3a4cfe77fe34eeb4b3fb38d6c4
- https://git.kernel.org/stable/c/e80c3d6e1dc80bae76471ea5b10bf625168f14c6
Provider assertions
1Linux · cna
mm/huge_memory: fix truncate racing with PMD zapping
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 101546bbce5bbaa9a1169ce0b039b355fe1d2b95e0be7f05dbe3d7bbb329729f
- Ingested
- 23 Nov 2026, 14:37:13 UTC
- Source record
- Official CVE record