Submitted by Ruhum, also found by wait, __141345__, rvierdiiev, Ermaniwe, and HollaDieWaldfee
https://github.com/code-423n4/2022-12-tigris/blob/main/contracts/BondNFT.sol#L150 
https://github.com/code-423n4/2022-12-tigris/blob/main/contracts/BondNFT.sol#L225
After a lock has expired, it doesnt get any rewards distributed to it. But, unreleased locks cause other existing bonds to not receive the full amount of tokens either. The issue is that as long as the bond is not released, the totalShares value isnt updated. Everybody receives a smaller cut of the distribution. Thus, bond owners receive less rewards than they should.
A bond can be released after it expired by the owner of it. If the owner doesnt release it for 7 days, anybody else can release it as well. As long as the owner doesnt release it, the issue will be in effect for at least 7 epochs.
Since this causes a loss of funds for every bond holder I rate it as HIGH. Its likely to be an issue since you cant guarantee that bonds will be released the day they expire.
Heres a test showcasing the issue:
The totalShares value is only updated after a lock is released:
Only shares belonging to an active bond should be used for the distribution logic.
TriHaz (Tigris Trade) disputed and commented:
Alex the Entreprenerd (judge) commented:
Alex the Entreprenerd (judge) decreased severity to Medium and commented:
