But it is on the edge of the roof so that should not be a problem.
Plumbing vent pipe height above roof.
Above the roof plumbing vent height.
On a sink that would be either the rim or overflow hole.
I have a main vent and a sink vent and both are only 6 high above the roof.
A note on the main drain.
Open vent pipes that extend through a roof shall be terminated at least 6 inches 152 mm above the roof or 6 inches 152 mm above the anticipated snow accumulation whichever is greater except that where a roof is to be used for any purpose other than weather protection the vent extension shall be run at least 7 feet 2134 mm above the roof.
The vent is supposed to be 10 away or 2 above any window.
Upc i 906 1 and 906 2.
You should be able to cut that vent shorter but stay above the roof line.
I am sure the plumber put it at that height for the inspector.
You must also consider the snow line so the pipe does not get covered.
Vent pipes should extend to outdoors above the building roof and should terminate vertically not less than 6 above the roof surface nor more than 24 and must be at least 12 from any vertical surface such as a nearby sidewall.
A vent stack is not like a chimney which requires 2 higher than any roof within 10.
The 6 you describe should be just fine.
You are letting air into the plumbing system of the house.
However it needs to be at least six inches above your fixture s flood level to keep from getting wet.
The re vent is the only exception since it runs horizontally.
Each vent pipe or stack shall extend through its flashing and shall terminate vertically not less than 6 inches 152 mm above the roof nor less than 1 foot 305 mm from a vertical surface.
The slope is about 4 high for every 12 horizontal.