stain

what causes this stain if there is nothing above but attic

One option is poor flashing on the roof .
Water is traveling down the flue .

hey thanks it makes sense to me