2007 Subaru Impreza 2.5i

When i was driving my Subaru it cutoff while in drive below 25mph and it was below freezing outside. It stalled 2 more times after that. Please help

This 2-3 year old car has a Powertrain Warranty that lasts for several years/many 10s of thousands of miles.
If it is still under warranty, drive it/tow it to a Subaru dealership for diagnosis and free repair.