CEL P0011 and P0021 think is a vacum leak!

This may sound dumb, but, some parts do fail for no apparent reason, could the cps possibly have just died? Maybe pull it and test it. Worth a shot and testing is free.
 
Those two codes popped up on mine in January, on my AP was able to monitor the avcs and the ocv not sure about 07 but for my 04 needed to remove three filters in the banjo bolts for the oil lines two on top of the heads up front and one back under the turbo. It is recommended by subaru to remove them.
 
Top