Critical LDK Bug Exposed Nodes to Fund Theft and Restart Failure
A critical bug in Bitcoin's Lightning Development Kit (LDK) has been patched after it was discovered to pose financial risks and disrupt node restarts. The issue, which affected nodes that use the LDK to manage payment channels, allowed malicious peers to divert small amounts of funds from a channel or prevent saved state from loading.
The bug, which was fixed in version 0.2.6 of the LDK, could have been exploited by a malicious peer to allocate excess fees to their own output, leaving the node at risk of fund theft. Additionally, if a bogus payment contract was sent immediately after a legitimate one, it could prevent ChannelManager state from loading, leading to restart failure.
The LDK is used by developers to build Bitcoin Lightning applications, including mobile wallets and payment-service infrastructure. The fix has been released as part of version 0.2.6, which is now available for affected application teams to incorporate into their software.