The conflict in the Middle East has fanned concerns around inflation, the building society said.