Bitcoin Lightning Network Developers Patch LND Flaw That Could Wipe Payment Records After Node Restart
November 17: According to CryptoSlate, Bitcoin Lightning Network developers have fixed a software vulnerability in LND (a Lightning Network node implementation). The flaw stems from a 16-bit counter used to record the number of entries when the software saves and restores channel updates, which overflows and wraps back to zero once it reaches 65536. This could cause a node to misread the record as an empty list after a restart, thereby missing settled hash time-locked contracts (HTLCs) and breaking the accounting integrity of payment channels.
Developers noted that a connected node could push the list entries up until overflow by repeatedly sending fee updates and commitment signatures while withholding the necessary revocation messages. LND released v0.21.8-beta and v0.20.8-beta on November 11, fixing the issue by adding write protection and validating old records at load time. It has not yet been confirmed whether the vulnerability has been exploited or has caused any loss of funds.