Throwing this out there to see if this is an isolated issue or other people have had this issue.
Has anyone else come back to their trunk/rear hatch open when you know for a fact that it was closed and locked when you walked away. This has happened 3 times in the 2 yrs I've owned my 18' cx5.
The first time I lost my computer and every single picture on an external hard drive.
2nd time nothing was missing and this 3rd time was in my driveway overnight with nothing missing but I hadn't used the trunk at all. I have no idea what's going on and it happens so infrequently that I can't replicate it at the dealership. My guess is that I sometimes keep my key in my back pocket and if I'm within range if there is a small coin or gadget in my pocket the truck button is pressed? I've moved my key to the front pocket but now I'm super paranoid if I have to leave anything valuable in the car for any length of time.
A better design would require two key presses over a long key hold... Or a recessed button.
I was doing a search and your post came up. We have had a similar problem. We bought our Mazda CX-50 October 22, 2022. Within a month of purchase, I was sitting in the car for about an hour waiting for my husband. He went inside a casino to do some gambling for an hour. I can't stand the smoke so I always sit in the car and Facebook or shop on my phone. He locked the car and took his key fob with him. My key fob was sitting next to me on the center console. The car was off and it was locked. The sun was just starting to set when the car unlocked itself. Lights came on inside, headlights flashing outside. I thought my husband was coming back out but he wasn't. I locked it and called him and he was nowhere near the car and deep inside the huge building far away from where we had parked our car. For the next 45 minutes the car continued to make sounds unlocking the car lights flashing until finally the back hatch opened. When it did this the lights didn't even come up in the car! That really freaked me out. It was dark outside by this time. We had just been at Costco and there was about $400 plus dollars in groceries and other nice things in iced chests, and crates which would have been easy to take off with had I not been there. I closed the tailgate and locked myself in the car again. I Called my husband and asked if he was messing with me. He had no idea what I was talking about. I even videoed the doors unlocking. When he came out I asked him again if he was messing with me. He said no absolutely not. He tried to reason that maybe because it was in his pocket. But that made no sense because he ws deep inside a huge casino and the car was not close to the door. He also started thinking, well maybe because you had the key fob in the car with you it didn't want to stay locked. I said that that didn't explain why the tailgate opened. Also this is a vehicle that is intended for people to be able to camp inside of it. It would make no sense that having the key inside of the car would not allow you to lock the car. You couldn't secure yourself inside of the vehicle that way while camping. So we both decided that's was true and most likely not the reason for these issues. We decided we'd wait and see if it continued and yep...it certainly did!
Soon after this incident we went to the grocery store and both carried bags to the house. I had the smaller load so I pushed the close and lock button on the tailgate and it was closing. I heard it. I saw it. But when my husband went out later he said I'd forgotten to close it. I insisted I had not forgotten. He said maybe it saw you in the sensor and went back up. I said it will literally hit you before it goes back up. The only sensor is in the resistance from hitting something. Also there was nothing in the back to hit and go back up. It was empty.
...Then it happened again last weekend. Same thing. I pushed the button, saw it coming down, heard it shut and lock and continued on into the house right behind my husband. I have proof of this on our security camera. At 8:30 p.m. my mom came over and asked if we had meant to leave the tailgate open on the Mazda. I said, I had closed it. And again my husband believed I had just forgotten. I have the same type of tailgate on my van... You push a button, and I never, ever leave it open unless I intend to. If it was something I regularly did, I could understand his suspicions. But, that's just not something I don't forget to do. I also have a grainy nighttime video of the hatch opened. But when we come inside we place our keys or somewhere that they're not going to have the buttons pushed on. The car during daylight hours on our videos show that the hatch has been down for hours and it wasn't until sometime after dark it must have opened. Which means nobody was messing with the key fob, it was in nobody's hand so I know for sure it's not the key fob. Anyway, unfortunately, I don't have a video of it showing that it's opening. It was far enough away from the camera that it didn't trigger it by motion.
Fast forward to today, 6 days later. I get a call from my husband who works at a big plant, far removed from the city on private property with only about five or six other people working at the same time. No one but him has a Mazda. He generally doesn't lock his car because it is in a secured lot. I always get notifications on my phone from the app that says his car is parked and it is not locked. Two of his employees came upstairs and said his hatch was open. He had not opened his hatch when he came to work. He hadn't been down to his car either. The car is a pretty long distance away from his office in a huge metal building. Not likely that he accidentally hit any thing on his fob. And keep in mind as you all know that these fobs are flat so unless you're sticking it in your pocket with more keys, most likely nothing's jabbing into it and holding it down long enough for anything like this to happen. I tested it out I know this to be true. So I have debunked the key fob scenario. When he came down to his car he was unable to close it with the key fob. But was able to lock and unlock the car, so he knew that the battery in the key fob was fine. I was quick to say "I TOLD YOU! It was not me!"
He called the dealership and explain what was going on. They believe he probably just needed a new battery in his vehicle. He explained, this is a newer vehicle and they said that still could be the problem. Although, when the first thing happened, we had only had it for a month. I really don't believe it's the battery. We've made an appointment for next Monday to drop it off. But seeing the responses in this thread, plus the links people have found in the comments and other Google searches I've done, this seems to be a big problem with Mazdas. I think we'll have to keep on top of them because if they don't fix this this would be considered a lemon law issue. We will be keeping all our time spent out of this car documented with service receipts. You just can't have your car randomly opening it's tailgate. I wonder if anybody's had an issue of it opening while driving! Could you even imagine! How dangerous!
I started to think maybe it has nothing to do with the computer within the car, maybe it is the application and the satellite. Because you can lock and unlock your car remotely. This may be some sort of computer problem that they're having externally.
We'll see what they say next week. But, if they're like every other dealership, I'm sure they'll just find the easiest logical thing to replace it and then leave it to you to discover it's not actually fixed.
If anyone else has had any updates on theirs or resolutions I would love to know. If this isn't fixed I just can't see keeping this vehicle. It truly is a safety issue on many levels.