The banking giant sold tens of billions in mortgage securities to Fannie and Freddie, the FHFA said. Those securities tanked as the housing bubble burst in 2007, going down billions in value. The government bailed out Fannie and Freddie during the financial collapse with aid totaling $187 billion. The agencies have since repaid $146 billion, according to AP. Earlier this month, JPMorgan had reached an agreement with the Justice Department for a $13 billion settlement on allegations regarding the quality of mortgage-based securities, or high risk sub-prime mortgages, that it bundled ahead of the 2008 financial crisis. That agreement represented the most significant enforcement action since the government initiated a task force at the federal and state law level to pursue wrongdoing stemming from mortgage securities. Out of that $13 billion settlement, $9 billion are comprised of fines or penalties, while $4 billion will go to relief for struggling homeowners.