{"id":"CVE-2026-99729","summary":"mm/rmap: handle device-exclusive entries in folio_referenced_one()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/rmap: handle device-exclusive entries in folio_referenced_one()\n\npage_vma_mapped_walk() can return non-present device-exclusive entries,\nbut folio_referenced_one() passes them to PTE young-bit accessors that\nrequire present PTEs.\n\nWe must neither call clear_flush_young_ptes_notify() nor\nfolio_pte_batch() with non-present entries. For example, clearing the\nyoung bit on non-present PTEs can corrupt the entry: on arm64\nPTE_AF overlaps the swap type, so clearing it turns a device-exclusive\nentry into an ordinary swap entry.\n\nfolio_pte_batch() will VM_WARN_ON_FOLIO.\n\nApply the same approach as the previous fixes to e.g., damon_ptep_mkold():\ntreat these entries as old from the CPU's perspective and obtain their\nyoung state through the MMU notifier.\n\nSkip PTE batching and MGLRU look-around for non-present entries, and\ndon't modify non-present PTEs.","modified":"2026-11-20T07:01:13.817542849Z","published":"2026-11-20T05:51:04.434Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99729.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9075e5fbad71e00a73cddef901a2a08ad7b51af5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f3c493d2f42b5f44a5c134d8d7ea7f960caf5e2c"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99729.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99729"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b756a3b5e7ead8f6f4b03cea8ac22478ce04c8a8"},{"fixed":"9075e5fbad71e00a73cddef901a2a08ad7b51af5"},{"fixed":"f3c493d2f42b5f44a5c134d8d7ea7f960caf5e2c"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99729.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.14.0"},{"fixed":"7.3.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99729.json"}}],"schema_version":"1.9.2"}