Isn't that what's known as a (not an) "haunting tune"? But that doesn't quite convey how annoying it can be... However, the German word for a song you can't get out of your head sure does: "Ohrwurm". Yuk.