The officials say the bank will pay $10 billion in cash and provide consumer relief valued at $7 billion.
They spoke to The Associated Press on condition of anonymity because the deal isnt scheduled to be announced until Thursday at the earliest.
The bank declined comment.
The agreement requires the bank to acknowledge making misrepresentations about the quality of its residential mortgage-backed securities itself and in those by Countrywide Financial and Merrill Lynch. Those institutions were acquired by the bank in 2008 and were responsible for the bulk of the questionable loans.