According to Soviet penal code, paragraph 58-1, betrayal of motherland, aka treason. Punishable by death or 25+5 in prison camp.
True and proper communist wouldn't have let himself be captured.
POWs and civilians who lived in the occupied lands were often charged with treason and sent to labor camps. Many (but not all) were released in 1953 when Stalin finally died.