jbd2_journal_wait_updates in fs/jbd2/transaction.c in the Linux kernel before 5.17.1 has a use-after-free caused by a transaction_t race condition.
https://security.netapp.com/advisory/ntap-20220506-0006/
https://github.com/torvalds/linux/commit/cc16eecae687912238ee6efbff71ad31e2bc414e
https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.17.1