The vulnerability allows anyone with physical access to the iOS device the ability to easily bypass the passcodelock and use a USB cable to get access to the data stored on the iPhone or iPad from a Mac or PC.
If you're a sleep texter or afraid of becoming one, the easiest and best solutions are the most obvious: Turn off your phone, set your passcodelock or place it on the other side of the room so it's not within easy reach.