My question involves an eviction in the state of: Virginia

Hello,
I have 10 months left on my lease, but my landlord sold the property that I am living in and the new landlord has given me 30 days to vacate. He plans to "flip" the house. He is keeping my deposit because of damage to the linoleum in the kitchen. Can he do this legally? If he is going to flip the house anyway why would he keep my deposit citing "property damage"? I was very cooperative during the sale of the property and allowed them access any time they wanted. I don't understand this whole situation. Any insight would be appreciated.
Thanks!