Diophantine Problems and Linear Groups