{"api_version":"1","generated_at":"2026-11-20T07:30:01+00:00","cve":"CVE-2026-99707","urls":{"html":"https://cve.report/CVE-2026-99707","api":"https://cve.report/api/cve/CVE-2026-99707.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99707","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99707"},"summary":{"title":"mm/khugepaged: flush deferred unmaps before dropping a failed folio","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/khugepaged: flush deferred unmaps before dropping a failed folio\n\ncollapse_file() can fail its reference-count or dirty-folio check after\nunmapping with TTU_BATCH_FLUSH.  Both paths put back the isolated folio,\nthen unlock it and drop the lookup reference before reaching the common\ntry_to_unmap_flush().\n\nThe page-cache reference does not keep the folio stable once the lock is\nreleased.  Another collapse can replace and free it.  With its PTEs\nalready gone, that collapse cannot flush the first task's per-task TLB\nbatch, and retract_page_tables() skips short or unaligned VMAs.  A CPU can\ntherefore retain a user translation to the freed folio.  This has been\nreproduced with unprivileged MADV_COLLAPSE on a memfd.\n\nFlush at out_unlock while the lookup reference and folio lock are still\nheld.  The common flush continues to cover the accumulated pagelist on\nboth success and rollback, preserving batching on successful collapses.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-20 06:18:06","updated_at":"2026-11-20 06:18:06"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/d9d621ad49a969587d32c98aee1d83e679b9d361","name":"https://git.kernel.org/stable/c/d9d621ad49a969587d32c98aee1d83e679b9d361","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/854e5ff8b3ce2a776586cabebaeae645c992345b","name":"https://git.kernel.org/stable/c/854e5ff8b3ce2a776586cabebaeae645c992345b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8c4adb787f77318df3b478f928f271e26d557208","name":"https://git.kernel.org/stable/c/8c4adb787f77318df3b478f928f271e26d557208","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/cf1902ab0203f8767a3582143049d1bea5422096","name":"https://git.kernel.org/stable/c/cf1902ab0203f8767a3582143049d1bea5422096","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99707","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99707","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde d9d621ad49a969587d32c98aee1d83e679b9d361 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde cf1902ab0203f8767a3582143049d1bea5422096 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde 8c4adb787f77318df3b478f928f271e26d557208 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde 854e5ff8b3ce2a776586cabebaeae645c992345b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.18","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.18 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.118 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.64 6.18.* 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":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["mm/khugepaged.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"d9d621ad49a969587d32c98aee1d83e679b9d361","status":"affected","version":"6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde","versionType":"git"},{"lessThan":"cf1902ab0203f8767a3582143049d1bea5422096","status":"affected","version":"6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde","versionType":"git"},{"lessThan":"8c4adb787f77318df3b478f928f271e26d557208","status":"affected","version":"6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde","versionType":"git"},{"lessThan":"854e5ff8b3ce2a776586cabebaeae645c992345b","status":"affected","version":"6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["mm/khugepaged.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.18"},{"lessThan":"5.18","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.118","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.64","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":"6.12.118","versionStartIncluding":"5.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.64","versionStartIncluding":"5.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.5","versionStartIncluding":"5.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"5.18","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/khugepaged: flush deferred unmaps before dropping a failed folio\n\ncollapse_file() can fail its reference-count or dirty-folio check after\nunmapping with TTU_BATCH_FLUSH.  Both paths put back the isolated folio,\nthen unlock it and drop the lookup reference before reaching the common\ntry_to_unmap_flush().\n\nThe page-cache reference does not keep the folio stable once the lock is\nreleased.  Another collapse can replace and free it.  With its PTEs\nalready gone, that collapse cannot flush the first task's per-task TLB\nbatch, and retract_page_tables() skips short or unaligned VMAs.  A CPU can\ntherefore retain a user translation to the freed folio.  This has been\nreproduced with unprivileged MADV_COLLAPSE on a memfd.\n\nFlush at out_unlock while the lookup reference and folio lock are still\nheld.  The common flush continues to cover the accumulated pagelist on\nboth success and rollback, preserving batching on successful collapses."}],"providerMetadata":{"dateUpdated":"2026-11-20T05:50:47.785Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/d9d621ad49a969587d32c98aee1d83e679b9d361"},{"url":"https://git.kernel.org/stable/c/cf1902ab0203f8767a3582143049d1bea5422096"},{"url":"https://git.kernel.org/stable/c/8c4adb787f77318df3b478f928f271e26d557208"},{"url":"https://git.kernel.org/stable/c/854e5ff8b3ce2a776586cabebaeae645c992345b"}],"title":"mm/khugepaged: flush deferred unmaps before dropping a failed folio","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99707","datePublished":"2026-11-20T05:50:47.785Z","dateReserved":"2026-09-25T10:25:14.430Z","dateUpdated":"2026-11-20T05:50:47.785Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 06:18:06","lastModifiedDate":"2026-11-20 06:18:06","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99707","Ordinal":"1","Title":"mm/khugepaged: flush deferred unmaps before dropping a failed fo","CVE":"CVE-2026-99707","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99707","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/khugepaged: flush deferred unmaps before dropping a failed folio\n\ncollapse_file() can fail its reference-count or dirty-folio check after\nunmapping with TTU_BATCH_FLUSH.  Both paths put back the isolated folio,\nthen unlock it and drop the lookup reference before reaching the common\ntry_to_unmap_flush().\n\nThe page-cache reference does not keep the folio stable once the lock is\nreleased.  Another collapse can replace and free it.  With its PTEs\nalready gone, that collapse cannot flush the first task's per-task TLB\nbatch, and retract_page_tables() skips short or unaligned VMAs.  A CPU can\ntherefore retain a user translation to the freed folio.  This has been\nreproduced with unprivileged MADV_COLLAPSE on a memfd.\n\nFlush at out_unlock while the lookup reference and folio lock are still\nheld.  The common flush continues to cover the accumulated pagelist on\nboth success and rollback, preserving batching on successful collapses.","Type":"Description","Title":"mm/khugepaged: flush deferred unmaps before dropping a failed fo"}]}}}