An Ethereum consensus client has integrated a patch for a validator pubkey cache poisoning vulnerability as preparations continue for the upcoming Glamsterdam upgrade. The fix targets a flaw linked to the Gloas fork, which could have caused affected nodes to reject valid signatures and fork off the main chain due to errors in the global pubkey cache.
The vulnerability centered on how the client handled validator public keys and their indexes within a global cache. A potential exploit would involve three pending deposits right before the fork, causing discrepancies between a canonical chain and a side chain where a validator was slashed. Because the cache assumed both chains would generate identical validators, it globally imported keys out of order, leading nodes to drop valid signatures on the canonical chain.
To resolve this, the update ensures keys are only added to the global pubkey cache after their activation eligibility epoch reaches finality. Additionally, a new HeadPubkeys structure merges keys from the head state and the global cache to prevent missing keys if the network finalizes without new blocks. As the Glamsterdam upgrade approaches, developers continue addressing network edge cases around the fork boundary.
