A UN panel ruled that Kofi Annan erred in firing the sole UN official to be dismissed for scandal-tainted oil-for-food plan.