There is a subtle difference:
Communism: A communist society is characterized by common ownership of the means of production with free access to the articles of consumption
Socialism: socialism implies public ownership (by a proletarian semi-state apparatus) or cooperative ownership (by a worker cooperative enterprise