The supreme degree of participation in the authority of Christ is ensured by the charism of infallibility. This infallibility extends as far as does the deposit of divine Revelation; it also extends to all those elements of doctrine, including morals, without which the saving truths of the faith cannot be preserved, explained, or observed.
Source: Catechism of the Catholic Church (Vatican.va)