Oil hovers around 6-month high as U.S. stocks rise