I have just fixed the very same problem on a Telecaster. As well as being loose, there was a very visible crack through which I was able to get some Titebond wood glue. This was applied using a pin, once I had a fair bit in there, I used masking tape to apply pressure to the repaired section and force it back against the wood. Obviously the cracks in the paint are still visible but the paint is now nice and firm.