Technically, your landlord could cure the default on the mortgage and the foreclosure would not occur. As such, if you fail to pay the rent the landlord could evict you. If the property is actually foreclosed you will want to hire an attorney who is familar with both foreclosure and eviction laws. There are remedies available to you, but you must assert them. Good luck!
The Copp Law Firm, PC
If this answer was helpful, please indicate below.
DISCLAIMER—This answer is for informational purposes only and discusses general legal principles, trends, and considerations and is not intended as specific legal advice regarding your question. This answer does not establish an attorney client relationship. For legal advice, you should retain legal counsel regarding your specific circumstances.