You'll need to fill in the hole before you can get the screw back in tight. The best filler is more wood, held in place with yellow carpenter's glue. Matchsticks, toothpicks, golf tees, packed in tightly, will do the trick. But better yet is a piece of ⅜
-inch dowel. First, use a ⅜
-inch drill bit to enlarge the hole. Cut off a small length of dowel with a utility knife or small saw. Dab it with glue and tap it into the hole. When the glue is dry, use a chisel or the saw to slice off the excess. Then drill a new hole and reattach the hardware. And put those golf tees to their intended use.
See more at Sure Cure for Loose Hinges