First of all, your code passes through the driver, so you can exploit vulnerabilities there. Even after that, the GPU can do DMA requests, so you can abuse that to read/write arbitrary memory locations.
First of all, your code passes through the driver, so you can exploit vulnerabilities there. Even after that, the GPU can do DMA requests, so you can abuse that to read/write arbitrary memory locations.