If the flashing is seriously damaged or cut, it might need replacing. If this is the case, you will have to lift up or remove the roofing material around, as the flashing goes underneath it. Replacing a roof is a significant undertaking that many homeowners consider tackling on their own. https://roofreplacement53108.wikibriefing.com/2823905/the_definitive_guide_to_roof_replacement