If you are staring into space, you are looking straight in front of you, without actually looking at anything in particular, for example because you are thinking or because you are feeling shocked.
He just sat in the dressing-room staring into space.
Molly turned away and gazed off into space, a faraway look in her eyes.