I had this happen on my 2011 Legacy 2.5 Premium when it had only about 10k mi.
The dealer said it was a computer bios flaw and flashed the computer with a fix.
Well it just happened again at 22k mi . Check engine light, brake light, and flashing cruise and another dash light etc . I'm gonna bring it in for a service this week anyway and ask why it's still happening. Between this and the clunking front brake caliper pins I'm starting to lose faith with this new Subaru