2014 Mazda CX-9 - Glass seal issue

The foam seal under the rear glass, is coming out from under the glass.

call a windshield repair shop like safelite. also check your auto insurance policy and see if you have full glass on it. if you do it will not cost you anything to fix it.