US oil settles up $1.09, or 2.48%, at $44.96 a barrel

The Fawley oil refinery and Hamble oil terminal are seen on January 7, 2015 in Southampton, England.
Getty Images

Crude oil prices snapped a three-session losing streak on Monday after a rally in U.S. gasoline and diesel due to a refinery outage helped crude futures advance from multi-month lows earlier in the session.

The dollar's drop to near session lows also made oil and other commodities denominated in the greenback more affordable to holders of the euro and other currencies.

Hedge funds and other big speculators raised their bullish exposure to U.S. crude for the first time in seven weeks, trade data on Friday showed, even as most traders and investors feared weaker demand and higher supplies ahead.

Read More Are oil production hikes the sole defense against crude's lows?

In Monday's session, gasoline futures jumped about 4 percent, heading for its largest daily gain in a month, after BP's 240,000 barrel per day crude distillation unit at its Whiting, Indiana, refinery, was shut by a malfunction on Saturday, sources familiar with operations at the plant said.

Futures of ultra low sulfur diesel also rose about 3 percent, rebounding from last week's six-year lows.

Winning energy trade

Brent was up $1.78, or 3.66 percent, at $50.39 a barrel at 2:33 p.m. after hitting a six-month low of $48.24 earlier in the session.

U.S. crude ended up $1.09, or 2.48 percent, at $44.96 a barrel, up from its session low in Asian trading at $43.35, its lowest in 4½ months. WTI futures also recorded their best session since July 9, when they settled up $1.13 at $52.78 a barrel.

Both benchmarks have been falling for six weeks, hampered by a supply glut.

"Brent is stronger than WTI so far this morning. That would also tend to support the crack spreads," said David Thompson, executive vice-president at Powerhouse, an energy-specialized commodities broker in Washington.

Read MoreOil collapse couldn't come at worse time for industry

Crack spreads, or refining margins, hit a one-week high for gasoline.

The Brent-WTI spread, another key trade in oil, moved back to the $5-per-barrel level in Brent favor for the first time in 10 days. The difference between WTI's front-month and second month was at its highest in three weeks as concerns over the Whiting refinery weighed on prompt oil.

Refined oil products usually rally during the summer in the United States, when driving activity peaks.

This year, the run-up in gasoline came as early as April but lost steam lately as some traders and investors deemed the market had gotten ahead of itself after larger-than-expected builds in gasoline stocks as refiners ran at record pace.