Traffic laws do not automatically authorize passing a slower vehicle.  Traffic laws prohibit passing in a no-passing zone.  For example, if you passed a vehicle where there was a no passing sign or a double yellow line or some other justification for a no passing zone, then you would be cited for passing at that location.