Trustzone runs an RTOS-like kernel, he likely hacked Qualcomm's implementation of this kernel to gain access.
In particular this line in the screenshot hints at what he did: "Overwriting syscall_table_5 pointer"
The issue is likely applicable on particular qualcomm devices, and a software patch should be possible.