How would you fix this? Is this a vent pipe and should it have a cap?? Class A roof. We were thinking some great stuff foam, then diseal patch and flex seal/lap
Air Admittance Valves | Studor
Aeration and air release valves for ductile iron pipe systems
VENTS-US 4 in. Galvanized Back-Draft Damper with Rubber Seal KOM 100 U - The Home Depot
Drain-waste-vent system - Wikipedia
Roof Flashing: Replace Plumbing Vent Flashing (DIY) | Family Handyman