There is no one-year deadline to filing. You may be eligible to apply for Withholding of Removal even if you have a criminal past, and are currently in immigration detention. It will not make you eligible for permanent residency or citizenship. Instead, you will be technically ordered deported, but the United States will not deport you to the country where you fear being persecuted. However, it is possible that you may be deported to a third country you may have ties with. After this relief is granted, you cannot return to the U.S. if you leave.