Preheat the oven to 180 C (350 F). Grease and line two 20 cm round cake tins.
Sift the flour, sugar, cocoa, bicarbonate of soda, baking powder and salt into a large bowl.
In a jug, whisk the buttermilk, oil, eggs, food colouring, vinegar and vanilla together.
Pour the wet ingredients into the dry and whisk gently until just combined and smooth.
Divide the batter evenly between the tins and smooth the tops.
Bake for 28 to 30 minutes until a skewer inserted in the centre comes out clean.
Cool in the tins for 10 minutes, then turn out onto a wire rack to cool completely.
For the frosting, beat the cream cheese and butter together until smooth.
Add the icing sugar in two batches and beat until fluffy. Stir in the vanilla.
Place one layer on a plate and spread with a third of the frosting. Add the second layer.
Spread the remaining frosting over the top and sides with a palette knife.
Chill for 30 minutes before slicing for clean cuts.