New York State is suing Bank of America and its Merrill Lynch unit over the companies’ merger and Merrill’s subprime mortgage issues.

The New York State comptroller, Thomas P. DiNapoli, filed two lawsuits on Thursday in Federal District Court in Manhattan to recover losses suffered by the $132.5 billion state pension fund, which he oversees.

Defendants include Kenneth D. Lewis, former chief executive of Bank of America; Joe L. Price, the bank’s former chief financial officer who is now the bank’s president of consumer and small-business banking; and E. Stanley O’Neal, Merrill’s former chief executive.

Mr. DiNapoli filed the lawsuits after choosing to “opt out” of 2007 shareholder litigation against Merrill and 2009 litigation against Bank of America.