Rear derailleur mounting bolt or hanger thread stripped?
If the bolt spins in the hanger the threads are indeed stripped. The threads on the bolt don't look too badly damaged, so the hanger is where the threads are properly stripped out.

The tops of the threads on teh bolt look a bit worn to me - possible from spinning around inside the damaged hanger threads. I'd replace both the hanger and bolt as a precaution.