UAE or Saudi Arabia can take those bases out quite easily from land, or air if need be but thats not the point here. The point here is that the air war would be over Libya not close to Turkey or close to the UAE.Well, Iran is not going to hurt UAE unless there is some weird development like an Israeli attack on Iran from UAE. But Turkey has good relations with Qatar and you should expect Turkish jets to take off from Qatari bases to strike UAE.
https://english.alarabiya.net/en/pe...-Qatar-military-deal-mean-for-Arab-conflicts-