Intrusive music, musical hallucinations.
http://www.dr-bob.org/babble/20020116/msgs/90809.html

We had a simple word for it in a thread not too long ago,
but I can't remember it. It must be very common, and usually
harmless, though unwelcome.