Turn off the circuit breaker to the bathroom vent. Attempt to turn on the bathroom vent to ensure it is off. Although you are not working on the electrical components of the fan, it is a safe practice to cut off power before working around the appliance to prevent accidental shocks.
Go into the attic and find the vent hose connections. Bathroom fans that mount to the wall usually have a rigid pipe between the fan housing and the vent hose. Loosen the clamp screw securing the hose clamp to the bathroom fan vent pipe with a 1/4-inch nut driver. Pull the end of the hose away from the vent pipe.
Loosen the clamp screw on the opposite end of the vent hose where it connects to the outside vent hood pipe. Pull the hose away from the pipe.
Clean both vent pipes with a damp rag to remove dust and dirt. Stretch the vent hose across the attic floor so that it is straight. Measure the vent hose with a tape measure and purchase a new one that is the same length.
Place a hose clamp over each end of the new vent hose. Slide one end of the hose over the bathroom fan vent pipe. Wrap the seam between the hose and pipe with foil duct tape. Slide the hose clamp 1 inch from the end of the hose and tighten the clamp screw to secure the hose.
Slip the opposite end of the hose over the outside vent hood pipe. Wrap the seam between the hose and pipe with foil duct tape. Slide the clamp 1 inch from the end of the hose and tighten the clamp screw securely. Once both ends are secure, turn the circuit breaker back on to power the bathroom vent.