root@hive:~# adduser -u 2147483648 test1Next i switched to the newly created user and typed sudo.
test1@hive:/$ su test1And this was the result:
test1@hive:/$ sudoWe can see here that the UID value was wrapped to the 2147483647 value (0x7fffffff) followed by a segfault.
sudo: perm stack underflow: Invalid argument
sudo: unknown uid: 2147483647
We can have some fun with it e.g. creating a user with the 0x7fffffff UID. This way sudo will no longer crash, but it will be called for a different user : ). The bug was tested on the 1.8.5p2 version 32-bit OS. Additional details can be found in the bug report.