It is necessary to extend the attic at least 12 feet above the roof to allow for odors and humidity. The fixture it comes from won't drain correctly if you cap it. Add a vent to the roof if it is a drain.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.