Fannie Mae bled a little less red ink in the second quarter, but default rates on the home loans it guarantees are rising.

The government-controlled mortgage financer reported a loss of $14.8 billion for the second quarter on Thursday, compared with a $23.2 billion deficit the quarter before. The chief culprit: $18.8 billion of credit losses tied to rising defaults and foreclosed property expenses.