The German automobile maker issued a patch for a security issue that could have affected more than 2 million vehicles and allowed attackers to gain physical access to the cars.