I would soak the socks in lemon juice, then hang outside to dry, then wash again. The combo of sun and lemon juice is better than bleach. I ordered some cloth diapers that had some massive stains on them. They came completely out with this method, and after I was done they looked brand new.

Good luck!