Yes they do. Almost all countries do except for a couple.
North Korea and Iran dont. The International Civil Aviation
Organization (ICAO) has member nations globally that agree
to allow airlines to overfly and use their Air Traffic Services etc.
Even the countries that dont like each other usually leave the
Airlines out of their Political hassles. Ive flown over some unfriendly countries before like Afghanistan.
Thanks for the info.