Carbon monoxide fundamental bands in late type stars