The quintet had finished in the points at the Red Bull Ring in positions fifth to ninth respectively.
They were in danger, however, of dropping down the order as the stewards looked into the aftermath of the last-lap crash involving Alfa Romeo's Kimi Raikkonen and Aston Martin's Sebastian Vettel.
In the case of Sainz, Perez, Leclerc, Ricciardo, Gasly and Giovinazzi, the stewards
"accepted that the driver took the appropriate action in the double-waved yellow sectors".
Mazepin and Latifi, however, have both been hit with 10-second stop-and-go penalties, converted into a 30-second time penalty.
Latifi drops from 15th to 16th, while Mazepin is unaffected as he finished 19th and last.
The stewards determined that both drivers "did not slow down sufficiently for the double-waved and yellow sector".
Mazepin has also had three points added to his licence and now has five in total since making his F1 debut in Bahrain, while Latifi is up to six in the last 12-month period.