With a willing buyer and a willing seller, no reason it shouldn't be possible. The question is how much money it would take to make it "worth their while" to go through an additional purchase AND sale, versus just handing the car and keys back to the dealer.
You could also go through leasebusters and assume a nearly-completed lease and buy it back yourself.
Jaeger