All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
Rinsing the mouth is something legislated, be it obligatory or desirable, according to two different views of the jurists . As regards gargling (making water reach the throat), and the like, then no scholar has ever said that it is legislated, and this act may be considered as exaggerating in religion. What is required in Ghusl (ritual bath) is to make water reach all the external parts of the body, and not reach inside the body. Hence, it is obligatory (in the ritual bath) to make the water reach all the external parts of one’s body, including the inside and outside of the ears.
Concerning the ear canal, then the scholars differed in opinion about the obligation of washing it. The Maaliki School of jurisprudence is of the view that it is a Sunnah to rub it when performing Ghusl. However, the Hanafi School of jurisprudence is of the view that it is an obligation to wash everything that could be washed without difficulty, like the ear (ear canal) and the belly button. Whereas the Shaafi’i School of jurisprudence is of the opinion that it is an obligation to wash what appears from the ear canal and not the inside of it, as stated by An-Nawawi .
For more benefit on how to perform Ghusl according to the Sunnah, please refer to Fatwa 82245.
Allaah Knows best.