There are two possible consequences you must consider:
Taxable cancellation of debt income.(Note: Cancellation of debt income is not taxable in the case of non-recourse loans.)
A reportable gain from the disposition of the home (because foreclosures are treated like sales for tax purposes).(Note: Often some or all of the gain from the sale of a personal residence qualifies for exclusion from income.)