Bismihi ta'ala
It could even be obligatory to inform the friend about what you know about the person. Of course, you must make sure your information is accurate, and also it somehow does not backfire onto you.
It would not be considered as gheebah.
I would just advice it be done in a very diplomatic way, so as to avoid any problems from any side.
And Allah knows best.