On the influence of neutral interstellar matter on the upper atmosphere