If u r working on computer, or any other sitting job, then probably ur sitting posture is not proper. It might be giving uneven pressure on the nerve in the neck, which is supplying ur middle finger of hand.
Next Steps
some simple neck exercises and correction of sitting posture should be enough.
also avoid very thick or thin pillow while sleeping. it may cause same problem.
Health Tips
if it doesn't work, consult your doctor