Protection against bad USB as described in this thread by user 10008 in the top voted answer is not working on my PC at the moment.
I tried it when trying to install Ubuntu from a Live DVD to a USB Drive that was potentially infected, and now I just gave it a try on my notebook with an updated Ubuntu and it is not working.
I do everything as explained and it worked for me, when I tried it approximately one month ago for the first time. But now the mouse I connect is still getting recognized by the system.