Because a home's vent stack contains combustible materials, it should never contact wood roof decking.
It may be necessary to add a double-insulated sleeve on the stack, depending on local building and zoning codes.
Consult a contractor or qualified HVAC technician.