RIO DE JANEIRO—Brazil’s state oil company Petróleo Brasileiro SA put a price tag on a corruption scandal that has thrown the country into political and economic turmoil, writing off $17 billion due to losses from graft and overvalued assets.

The disclosures were part of the first audited financial statements released by Petrobras in more than eight months.

Brazilian...