 I bought used 2011 in 2013 with 22 K miles on it. Did all maintainence at regular intervals. At 45 K miles started to have water leak inside the cabin on passenger side after many days of squishing water sounds. Water was pooling on the passenger floor mats. Turns out it was Clogged AC Evaporator drain.  My mechanic was able to fix it by cleaning the drain and the problem solved until I use the AC coming summer. Now at 57 K miles noticed periodic oil leak in my garage. No lights coming on. Turns out it is Transfer case problem which is leaking oil . This is a famous issue on this model. Its 2017 and outside the warranty period now. New transfer case is almost $600 and including labor going to cost me $1100. I thought Mazda's were  a reliable Japanese brand. Not anymore !!! Avoid CX9's.