A vulnerability in the Linux kernel's memory management subsystem involving the truncate_inode_partial_folio() function has been resolved. The issue arises from improper handling of folios during truncation, where a stale pointer can lead to incorrect folio splitting or a use-after-free condition. The fix involves looking up the straddling folio by its page index to ensure the correct folio is referenced and locked during the operation.