The tail isn't necessarily infected. I'm just suggesting you keep a close eye on it and take precautions to prevent infection which can spread. The photos show that it has sustained damage but it may heal over and be no problem at all. Signs of infection would be wounded or damaged looking tissue (could be black, could be gray, could be open and bloody) that is spreading upward on the tail.