If the light was installed with a round "light box" inside the wall then the screws have pulled loose from it. You can try re-tightening the screws (usually only two). Sometimes, these screws get stripped if the light gets hit or bashed. In that case, you might need to get a slightly thicker screw (not necessarily longer).
Let us know how things went.