A bad smell indicates pericoronitis - purulent inflammation of the gum pocket near the figure eight.
Usually, along with the smell, there are other symptoms of inflammation around the eighth tooth:
Pain on pressing and swallowing;
Difficulty opening the mouth;
Swelling of the gums near the wisdom tooth.