From b5f7330e0bcd2cc2d9e04919c78a609b8351b508 Mon Sep 17 00:00:00 2001 From: SChernykh <15806605+SChernykh@users.noreply.github.com> Date: Wed, 3 Jun 2026 20:47:05 +0200 Subject: [PATCH] tx_pool: fix use-after-free in prune() - txid was a reference to an item which was later deleted in remove_tx_from_transient_lists(), and txid was used after that --- src/cryptonote_core/tx_pool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp index 5d729e56b..a95a828db 100644 --- a/src/cryptonote_core/tx_pool.cpp +++ b/src/cryptonote_core/tx_pool.cpp @@ -419,7 +419,7 @@ namespace cryptonote break; try { - const crypto::hash &txid = it->get_right(); + const crypto::hash txid = it->get_right(); txpool_tx_meta_t meta; if (!m_blockchain.get_txpool_tx_meta(txid, meta)) {