CNO isotopes in red giants: theory versus observations