Years into a stressed housing market, some lenders who have filed foreclosure actions may be running out of time to get their money back.

Defense lawyers are paying increasing attention to the length of foreclosure proceedings on the theory that some cases have become time-barred by a six-year-statute of limitations.