An oil pumpjack in the Inglewood Oil Field, seen from the Kenneth Hahn State Recreation Area, on July 13, 2022, in Los Angeles, California.

Oil prices rose on Wednesday, rebounding from losses early in the session on lift from encouraging figures on U.S. gasoline demand and as a lower-than-expected U.S. inflation figure drove investors into riskier assets.

Brent crude futures rose 68 cents, or 0.7%, to $96.99 a barrel. U.S. West Texas Intermediate crude futures gained 83 cents, or 0.9%, to $91.33.