Government-owned lender Ally Financial Inc. is sparring with its Residential Capital mortgage subsidiary over the unit's efforts to get out of a federal foreclosure-review program.

ResCap, which is in Chapter 11 bankruptcy, said Ally would be on the hook for any amount of restitution the Federal Reserve is unable to recover from ResCap under the terms of an agreement Ally entered into with the U.S. government in 2011, according to a filing in U.S. Bankruptcy Court Friday.