I would not recommend using a larger screw to fix this. What generally happens is that whoever put the doors on was trying to save time or didn't know what they were doing and did not pre-dill the hole, that causes the wood to split in the hole and the screw loosens up over time and use. A larger screw may/will split the wood further and cause a bigger issue and still be loose.
You can either, use glue and the same screw, or epoxy to fill the hole and after it hardens dill a pilot and reinsert the screw.
I have seen where individuals have split the entire board by not drilling a pilot, or by using a larger screw in an attempt to fix, at that point you have to replace the board or the entire cabinet depending on the location.
2011 GMC 3500HD 4x4 Crew DRW Duramax
2012 Sierra 365SAQ
2006 Police Roadking FLHPi