Any tenant who resides in residential real property containing less than 15 rental units that is being sold in a foreclosure proceeding under Article 2A of Chapter 45 of the General Statutes may terminate the rental agreement for the dwelling unit after receiving notice pursuant to G.S. 45-21.17(4) by providing the landlord with a written notice of termination to be effective on a date stated in the notice of termination that is at least 10 days, but no more than 90 days, after the sale date contained in the notice of sale, provided that the mortgagor has not cured the default at the time the tenant provides the notice of termination. Upon termination of a rental agreement under this section, the tenant is liable for the rent due under the rental agreement prorated to the effective date of the termination payable at the time that would have been required by the terms of the rental agreement. The tenant is not liable for any other rent or damages due only to the early termination of the tenancy.
N.C. Gen. Stat. § 42-45.2