Like OhioWinger says, the USB socket is held in place by a metal clip.
It is very similar to the spring clip holding the wiring plug onto the front indicators
( Fold one of the mirrors out to see it ), where the shiny silver wire clip is depressed
to release the wiring plug from the housing.
I'd be surprised if tne actual wiring clip has become detached from the plug,
more likely it has just worked loose - possibly not fully engaged from manufacture,
or has been disturned during some other work where the spring clip has been depressed
releasing the "catch" from the housing.
The tip for removing the glove box, after removing the 2 screws ( 1 external, 1 internal )
is to lift the glove box up and towards the rear of the motorcycle
to disengage the two front pegs from their rubber grommet type push fittings.
If the shiny silver steel spring clip is still attached to the plug,
then carefully but firmly push the plug back until it clicks into place -
it should feel quite solid when engaged properly.
Cheers

