AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Low 44 Cryptographic libraries

wallet_rpc_server: stop refresh on shutdown

Public commit record

What the developer wrote

Authored by woodser

45/100 · Thin
wallet_rpc_server: stop refresh on shutdown
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This patch fixes shutdown and wallet-replacement bugs in Monero's wallet RPC server. Previously, a long-running blockchain refresh could block the server from exiting, and signal handlers or background threads could try to stop or delete a wallet that was already being swapped or destroyed, leading to crashes or use-after-free memory corruption. The change adds a dedicated 'stop refresh' path, a 'shutdown' state, and guards around wallet replacement so teardown waits for in-flight refresh-stop calls to finish first.

Recommended action

Treat as a stability and potential security fix. Review whether the new atomic counters and yield loops are robust against priority inversion or spurious wakeups; consider replacing yield-spin loops with condition variables. Verify that all wallet replacement sites now use set_wallet(). No CVE or advisory is supplied; if this addresses a externally reported crash, request the project reference.

Security signals we found

01

use-after-free prevention during wallet teardown/replacement

02

race condition between signal handler and wallet deletion

03

denial-of-service via refresh blocking RPC server shutdown

04

missing synchronization on shared wallet pointer mutation

05

signal handler installed before server loop could leave wallet in stopped state

Risk score

Why this scored 44/100

Our methodology →
Potential impact 12/30
Exploitability 8/25
Stealth signal 6/15
Affected reach 7/15
Confidence 7/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.