Are you saying the problem also arose with the mouse plugged directly in to the PC?
Have you cleaned the rollers inside the mouse? That's the usual cause of stuck pointers. In this case I'm suspecting the KVM switch. Have you tried switching the cables / connectors around? I.e. connect port 'A' and cable 'A' to PC 2 rather than PC 1.