Pull the loose screw out by hand and set it in an easily retrievable place near the cabinet.
Coat a golf tee with wood glue, then insert the golf tee, pointed-side first, into the bored-out hinge hole.
Tap the golf tee in as far as it will go with a rubber mallet.
Let the wood glue dry for one hour or as long as suggested by the manufacturer.
Cut off the protruding part of the golf tee with a saw to make it flush with the wall or cabinet frame, then sand it smooth using medium-grit sandpaper.
Retrieve the screw you set aside earlier. Push the hinge flush against the wall and drive the screw into the plugged hole with a screw gun to finish the hinge-hole repair.