{"id":"CVE-2026-142795","summary":"mm: khugepaged: fix folio is used after folio_put/unlock()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm: khugepaged: fix folio is used after folio_put/unlock()\n\nOn the rollback path, folio_put() has already dropped the last reference\nof new_folio.  On the success path, new_folio is already unlocked and can\nbe freed concurrently.  The trace_mm_khugepaged_collapse_file() is left\nwith a dangling folio pointer.\n\nSo using the folio_pfn() before dropping the reference, closing\nuse-after-free window.","modified":"2026-12-03T05:00:32.063699084Z","published":"2026-12-03T03:11:27.741Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142795.json"},"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/0ff1c54374e97f6a1ebe240389e22fb44dbbeaf0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/325da0365ffa4f19ca50a9be2931a18bb252c07a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9010383e71e6ce75fcd3c8f87133c8ce6c0e6ab4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/967e196ee22611ebe5cd4436b71b577994ee7cb9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c08e076cb1976942a4bfcbc1c4dff76addd51fc7"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142795.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142795"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"4c9473e87e75a2a77ccd02e55c91ffe6a52b5df6"},{"fixed":"967e196ee22611ebe5cd4436b71b577994ee7cb9"},{"fixed":"c08e076cb1976942a4bfcbc1c4dff76addd51fc7"},{"fixed":"325da0365ffa4f19ca50a9be2931a18bb252c07a"},{"fixed":"0ff1c54374e97f6a1ebe240389e22fb44dbbeaf0"},{"fixed":"9010383e71e6ce75fcd3c8f87133c8ce6c0e6ab4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142795.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.61"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142795.json"}}],"schema_version":"1.9.2"}