In the vacuum of space, objects can stay for over 100 years because there’s no air resistance.
But they will eventually undergo orbital decay and lose energy, because even at these altitudes there’s a very slight atmospheric drag, as a result, the Earth’s gravity will eventually tug them back down into its atmosphere.