Rapid expansion of red giant stars during core helium flash by waves propagation to the envelope and implications to exoplanets