The infection can then move towards the upper urinary tract, towards either or both kidneys. Sometimes, the blood can carry bacteria or viruses to your kidneys from a different body part.