After foreclosure: How long until you can buy again?

By Les Christie, staff writer

NEW YORK (CNNMoney.com) -- Walking away from a mortgage you can still afford to pay has consequences; everyone knows that. Your credit score is shot and it can be impossible to get credit.

Some homeowners, no doubt, believe that the credit score hit is worth getting out from a deeply underwater mortgage. They may owe, say, $500,000 when their house value is only valued at $350,000. And, they figure, there's no way it will ever be worth what they owe so it's better to get out from underneath the burden.

After default, they reason, they can raise their FICO scores by paying all their bills on time and eventually finance another home purchase.