Not a fix , just buy a new seatpost, the bond between the head and the shaft have separated..
you can find ones that are much nicer too
bring the old one to your local bike shop,
they can measure the diameter of the seat post you have, to get the right replacement.
lots of brands, and prices. ..