Since then , dozens of financial institutions have revealed huge losses on risky mortgages -- even Fannie Mae and Freddie Mac , government-sponsored entities that private lenders rely on to buy their mortgages in hard times .