In the Linux kernel, the following vulnerability has been resolved: mm: khugepaged: fix folio is used after folio_put/unlock() On the rollback path, folio_put() has already dropped the last reference of new_folio. On the success path, new_folio is already unlocked and can be freed concurrently. The trace_mm_khugepaged_collapse_file() is left with a dangling folio pointer. So using the folio_pfn() before dropping the reference, closing use-after-free window.
https://git.kernel.org/stable/c/c08e076cb1976942a4bfcbc1c4dff76addd51fc7
https://git.kernel.org/stable/c/967e196ee22611ebe5cd4436b71b577994ee7cb9
https://git.kernel.org/stable/c/9010383e71e6ce75fcd3c8f87133c8ce6c0e6ab4
https://git.kernel.org/stable/c/325da0365ffa4f19ca50a9be2931a18bb252c07a
https://git.kernel.org/stable/c/0ff1c54374e97f6a1ebe240389e22fb44dbbeaf0