2nd Floor bathroom soffit venting?

Hi everyone

During a recent inspection I came across mold in the attic on the roof sheathing directly above a second floor bathroom vent that was exhausted out the soffit. It seems the moist air is being vented out of the building but being sucked right back in through the soffit. This is not the only time I’ve seen this and was wondering if anyone may have recommendations on rectifying this situation. Obviously, venting directly through the roof is an option but most home owners want to minimize roof penetrations, rightfully so. If anyone has any other suggestions or recommendations to improve these venting conditions, they would be greatly appreciated.

Many thanks

Dave

Can it be vented out through a gable?