Your lease states your rights. Follow the links provided to you regarding your rights in a foreclosure situation.
All the best to you.
Hopefully you have a contract with your landlord. In the contract it will state the advance notice the landlord must give you for vacating the premises. It should also state the condition the home must be in, in order to get your "security deposit" back. This may also be called a "cleaning deposit", or something else. You may have to read the "fine print" on your contract in order to get the information you need.
If you don't have a copy of your contract, ask your landlord for a copy.
Alain Pinel Realtors
It doesn't matter what is happening now; Shortsale, or Foreclosure; you need only be aware of the TRUSTEE SALE:
That is the date that it will either, be delayed, sold to an investor, or sold back to the Bank.
If it is SOLD, you will be notified in a few weeks, and you will have 30 days from that date.
You may be offered Cash-for-Keys, or Moving Money; which you won't see until after you have moved.
Good luck and may God bless
Normally tenant rights must be met by new owners.
Useful San Jose homeowner and resident contact information:
Top 2 agent nationwide at Keller Williams Realty, the nations largest
Over 30 years experience
Over 1,000 homes sold in Santa Clara and San Mateo Counties