Under the Karachi court ruling, the government has 15 days to appeal the decision, so Musharraf can't leave Pakistan immediately. The court gave no reason for striking Musharraf's name from the exit control list, which prevents people from leaving the country, usually in legal cases.
The 70-year-old Musharraf took power in a 1999 coup and then stepped down in 2008. He later left the country, but returned to Pakistan in March 2013, hoping for a political comeback.
Instead, he got embroiled in court cases, including the treason charges, which are connected to his decision in 2007 to declare a state of emergency and detain senior judges, including the chief justice.
Associated Press writer Adil Jawad in Karachi contributed to this report.