The treatment for a sock obstruction may vary depending on the severity of the blockage. In some cases, the sock may pass through the digestive system with the help of medication and a special diet. In more severe cases, surgery may be necessary to remove the sock.