It is a form of arthritis.
Why Does My Middle Finger Lock Up When I Am Sleeping, And I Have To Straighten It ,and It Is Painful?
This isn't an answer but I just started having the same issue a night ago happened twice I wake up and if I curl my finger I have to pop it past the 90 deg mark to get it to straighten out.