Is it an A1 or A2 style stock? (sounds like it) If so:
Check the little extension on the lower front of the buttstock that inserts in a recess below the receiver extension threads at the back of the lower receiver.
Without the buttstock screw in place, check for fit in the lower.
Either the receiver hole is too large, or the extension on the buttstock is too small (more likely being plastic vs. machine aluminum for the receiver.)
You can go the permanent route by using a compound like Acra-glass in the lower recess:
(remove buttstock and safety parts, or the spring will get in your way until it and the detent are hopelessly lost, clean the recess of all oils, put releasing agent on the buttstock, put the acraglass in the recess and screw the buttstock down tight -- and CENTERED!-- until it sets, remove the buttstock and clean off the releasing agent, reassemble, done.)
or the temporary way:
(shim crap into the recess until the buttstock fits tight and doesn't rotate after retightening; this will require dealing with the shimmed crap everytime you take it apart, especially when you reassemble the safety detent and spring.)
Cheers, Otto