Why is the vent pipe in the basement and not the roof?
Are you talking about that flexible tube sticking off to the right? It's not a vent pipe. It's a poorly done drain for something like a clothes washer or a water softener.

I suggest pulling that flexible tube out, scraping off the black crud, and gluing in a short piece of PVC pipe and a cap.