{"api_version":"1","generated_at":"2026-11-22T20:39:57+00:00","cve":"CVE-2026-99669","urls":{"html":"https://cve.report/CVE-2026-99669","api":"https://cve.report/api/cve/CVE-2026-99669.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99669","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99669"},"summary":{"title":"mm/huge_memory: fix truncate racing with PMD zapping","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/huge_memory: fix truncate racing with PMD zapping\n\nzap_huge_pmd_folio() removes the rmap before calling folio_mark_dirty().\nIf this was the last mapping, truncation can skip unmapping the folio\nand proceed without waiting for the PMD lock, racing with dirtying.\n\nifs_set_range_dirty() can oops if MADV_DONTNEED races with\nftruncate() on XFS, when we get the folio set dirty after it was found\nto not be mapped anymore.\n\nMove folio_mark_dirty() and folio_mark_accessed() before rmap removal,\nmatching the PTE zap path. This keeps the folio mapped while updating\nits state, so truncation must wait for the page table lock.\n\nFix generated by an LLM and sent by Chris Mason in private.\n\n[ david: simplify comment and description ]","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-20 06:18:01","updated_at":"2026-11-22 11:17:05"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/e6a07d29b0a60f3a4cfe77fe34eeb4b3fb38d6c4","name":"https://git.kernel.org/stable/c/e6a07d29b0a60f3a4cfe77fe34eeb4b3fb38d6c4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a5786ec7ba7967433207f20214ff75768497a2c9","name":"https://git.kernel.org/stable/c/a5786ec7ba7967433207f20214ff75768497a2c9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99669","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99669","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected fe6cf984939d8e12cb33a99673c8d026c5135e68 a5786ec7ba7967433207f20214ff75768497a2c9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected fe6cf984939d8e12cb33a99673c8d026c5135e68 e6a07d29b0a60f3a4cfe77fe34eeb4b3fb38d6c4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 79d8c89baa10612c1675972a632c65cdbe0936f6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 13f4910d81b62a214cdb28b47237198fa96078a2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7a4c3f7b47ba34b021a7747081f330bfb76a4271 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6e904f9e8cb0e39f60e1cdbea679f89346a563c2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected fd720d3906877b3d2118cd480027e4bc6648f0c5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected effe3cc6d4fdd407457eb30f7b0ef094393f0d64 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9435cddf1378d149d826bd7bd1448a44bf96868d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.10.273 5.11 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.15.224 5.16 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.1.191 6.2 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.6.160 6.7 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.12.114 6.13 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.18.52 6.19 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.2.5 7.3 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.3","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.5 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"99669","cve":"CVE-2026-99669","epss":"0.001560000","percentile":"0.047320000","score_date":"2026-11-21","updated_at":"2026-11-22 00:14:17"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["mm/huge_memory.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"a5786ec7ba7967433207f20214ff75768497a2c9","status":"affected","version":"fe6cf984939d8e12cb33a99673c8d026c5135e68","versionType":"git"},{"lessThan":"e6a07d29b0a60f3a4cfe77fe34eeb4b3fb38d6c4","status":"affected","version":"fe6cf984939d8e12cb33a99673c8d026c5135e68","versionType":"git"},{"status":"affected","version":"79d8c89baa10612c1675972a632c65cdbe0936f6","versionType":"git"},{"status":"affected","version":"13f4910d81b62a214cdb28b47237198fa96078a2","versionType":"git"},{"status":"affected","version":"7a4c3f7b47ba34b021a7747081f330bfb76a4271","versionType":"git"},{"status":"affected","version":"6e904f9e8cb0e39f60e1cdbea679f89346a563c2","versionType":"git"},{"status":"affected","version":"fd720d3906877b3d2118cd480027e4bc6648f0c5","versionType":"git"},{"status":"affected","version":"effe3cc6d4fdd407457eb30f7b0ef094393f0d64","versionType":"git"},{"status":"affected","version":"9435cddf1378d149d826bd7bd1448a44bf96868d","versionType":"git"},{"lessThan":"5.11","status":"affected","version":"5.10.273","versionType":"semver"},{"lessThan":"5.16","status":"affected","version":"5.15.224","versionType":"semver"},{"lessThan":"6.2","status":"affected","version":"6.1.191","versionType":"semver"},{"lessThan":"6.7","status":"affected","version":"6.6.160","versionType":"semver"},{"lessThan":"6.13","status":"affected","version":"6.12.114","versionType":"semver"},{"lessThan":"6.19","status":"affected","version":"6.18.52","versionType":"semver"},{"lessThan":"7.3","status":"affected","version":"7.2.5","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["mm/huge_memory.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"7.3"},{"lessThan":"7.3","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.5","versionStartIncluding":"7.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"7.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10.273","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.224","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.191","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.160","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12.114","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18.52","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2.5","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/huge_memory: fix truncate racing with PMD zapping\n\nzap_huge_pmd_folio() removes the rmap before calling folio_mark_dirty().\nIf this was the last mapping, truncation can skip unmapping the folio\nand proceed without waiting for the PMD lock, racing with dirtying.\n\nifs_set_range_dirty() can oops if MADV_DONTNEED races with\nftruncate() on XFS, when we get the folio set dirty after it was found\nto not be mapped anymore.\n\nMove folio_mark_dirty() and folio_mark_accessed() before rmap removal,\nmatching the PTE zap path. This keeps the folio mapped while updating\nits state, so truncation must wait for the page table lock.\n\nFix generated by an LLM and sent by Chris Mason in private.\n\n[ david: simplify comment and description ]"}],"metrics":[{"cvssV3_1":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"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.\nAC: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.\nPR: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().\nUI: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.\nS: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.\nC: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.\nI: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.\nA: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()."}]}],"providerMetadata":{"dateUpdated":"2026-11-22T11:09:34.256Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/a5786ec7ba7967433207f20214ff75768497a2c9"},{"url":"https://git.kernel.org/stable/c/e6a07d29b0a60f3a4cfe77fe34eeb4b3fb38d6c4"}],"title":"mm/huge_memory: fix truncate racing with PMD zapping","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99669","datePublished":"2026-11-20T05:50:18.839Z","dateReserved":"2026-09-25T10:25:14.428Z","dateUpdated":"2026-11-22T11:09:34.256Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 06:18:01","lastModifiedDate":"2026-11-22 11:17:05","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99669","Ordinal":"1","Title":"mm/huge_memory: fix truncate racing with PMD zapping","CVE":"CVE-2026-99669","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99669","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/huge_memory: fix truncate racing with PMD zapping\n\nzap_huge_pmd_folio() removes the rmap before calling folio_mark_dirty().\nIf this was the last mapping, truncation can skip unmapping the folio\nand proceed without waiting for the PMD lock, racing with dirtying.\n\nifs_set_range_dirty() can oops if MADV_DONTNEED races with\nftruncate() on XFS, when we get the folio set dirty after it was found\nto not be mapped anymore.\n\nMove folio_mark_dirty() and folio_mark_accessed() before rmap removal,\nmatching the PTE zap path. This keeps the folio mapped while updating\nits state, so truncation must wait for the page table lock.\n\nFix generated by an LLM and sent by Chris Mason in private.\n\n[ david: simplify comment and description ]","Type":"Description","Title":"mm/huge_memory: fix truncate racing with PMD zapping"}]}}}