What is Maryland law for rear ending?

There is no specific law covering this particular collision. However, in 99.9% of all such collisions it is the person who ran into the car in front of them who is charged. Usually it is for 'failing to give full time and attention' to their driving - or - 'following too close' - etc).