The word I've heard used is "earworm", which nicely suggests how hard it is to dislodge one. I don't know who first coined it.
You can't get rid of earworms, of course, but you can make them breed. There is real satisfaction in getting a normally musically sophisticated colleague whistling "Una Paloma Blanca".
Taunton, SomersetReuse content