Failed flashing
The vent flashing has failed, this will allow water to enter and follow the vent pipe to interior spaces. This type of failure normally occurs near the end of the roofs expected life. All flashings must be replaced when a new roof is installed.