LONDON- Oil prices went into reverse on Wednesday, giving up the previous day's gains as a surge in U.S. crude stocks and rising coronavirus infections in the United States and Europe fanned fears of a supply glut and weaker fuel demand.

Brent crude futures were down $1.89, or 4.5%, at $39.31 a barrel by 1310 GMT, having climbed nearly 2% on Tuesday. U.S. crude  was down $2.13, or 5.3%, at $37.44 after a 2.6% jump the previous day.

U.S. crude oil and gasoline stocks rose last week, data from the American Petroleum Institute showed, with crude inventories rising by 4.6 million barrels to about 495.2 million barrels, well above analyst expectations of a 1.2 million barrel build in a Reuters poll of analysts. 

"With hefty stock builds across the board in the headline API numbers, it is not all that surprising the oil price is moving lower this morning while waiting for the official EIA numbers this afternoon," said BNP Paribas analyst Harry Tchilinguirian said.

Energy companies and ports along the U.S. Gulf Coast prepared on Tuesday for Hurricane Zeta as it entered the Gulf of Mexico. 

"We consider Zeta likely to have a weaker impact on crude supply than the preceding hurricane Delta, but nevertheless wiping out some 150,000 barrels per day from the monthly average," consultancy JBC said.

Meanwhile, the United States, Russia, France and other countries have registered record numbers of COVID-19 cases in recent days and European governments have introduced new curbs to try to rein in the fast-growing outbreaks. 

U.S. President Donald Trump acknowledged on Tuesday that a coronavirus economic relief package is likely to come after the presidental election.

Adding to pressure on oil markets, Libya's production is expected to rebound to 1 million bpd in the coming weeks.

More bullish for oil prices was news that China's domestic aviation fuel consumption rebounded close to pre-pandemic levels in September, buoyed by a fast recovery in passenger travel and cargo freight, industry sources said. 

(Reporting by Noah Browning and Yuka Obayashi Editing by David Goodman) ((noah.browning@thomsonreuters.com))