Are you sure it&#x27;s not even more trivially vulnerable than that?  From man 2 chroot:<p><i>This call does not change the current working directory, so that after the call &#x27;.&#x27; can be outside the tree rooted at &#x27;&#x2F;&#x27;.  In particular, the superuser can escape from a &quot;chroot jail&quot; by doing:</i><p><i>mkdir foo; chroot foo; cd ..</i>