New York Attorney General Eric Schneiderman is investigating Bank of America (BAC) over the purchase, securitization and underwriting of mortgage-backed securities.

The bank said it was cooperating with the investigation, according to a Securities and Exchange Commission filing. 

In its annual report filing with the SEC, the banking giant said it could sustain up to $3.1 billion in legal losses.