earworm

noun
  1. a song or tune that repeats persistently in one’s mind
  2. Usage: informal
  3. a small caterpillar that feeds on corn ears
  4. Usage: agricultural

Examples