Ally Financial (GJM) set aside $270 million for expected penalties in "foreclosure-related matters," which will likely result in a fourth-quarter loss for the company. The Detroit-based bank is among the country's largest lenders involved in talks with state attorneys general, regarding a potential settlement of up to $25 billion for alleged foreclosure malfeasance. The $270 million charge is an estimate, not a final number, for Ally, according to a regulatory filing. A proposed settlement was sent to the states last week for comment. Ally joins several other banks that detailed potential charges for mortgage-related litigation. PNC Financial Services (PNC) and US Bancorp (USB) reported one-time charges, while SunTrust Bank (STI) executives said they would provide an estimate as settlement talks progress. Michael Carpenter, Ally CEO, said in November he would not sign any settlement at numbers discussed then due to what he described as Ally's meager exposure. "The downside is long-term aggravation and legal fees," Carpenter said then. "But if you think we have significant exposure from a financial implication, the answer is no." The majority of the $270 million charge comes out of Ally's mortgage unit, Residential Capital. Ally funneled $196.5 million into the subsidiary recently to push the unit back above its required $250 million tangible net worth. Rumors swirled late last year that ResCap could fall into bankruptcy, but Ally elected in early January not to file for Chapter 11 bankruptcy protection, according to Bloomberg. The bank plans to report fourth-quarter and 2011 results Thursday. Ally swung to a loss of $210 million for the third quarter as it cut the value of its mortgage-servicing rights by $471 million. Ally is also the subject of a lawsuit from Massachusetts Attorney General Martha Coakley, who said the bank used unlawful and deceptive foreclosure practices. Coakley filed the suit, which also includes Bank of America (BAC), Wells Fargo (WFC), Citigroup (C) and JPMorgan Chase (JPM), in early December. After the suit was filed, Ally halted its mortgage-origination business in the state. Write to Andrew Scoggin. Follow him on Twitter @AScoggin.