Oil eased on Wednesday after closely watched data showed a surprise rise in US crude stockpiles, but prices were supported by mounting tensions in the Middle East.