Under Virginia law, habeas corpus is a civil proceeding used to challenge and remedy due process violations. A habeas corpus petition attacking a criminal conviction or sentence shall be filed within two years from the date of final judgment in the trial court.Habeas corpus is perhaps the most critical writ available to prisoners for challenging criminal convictions and sentences in state and federal courts. Federal habeas corpus is a procedure under which a federal court may review the legality of an individual's incarceration. In United States law, habeas corpus is a recourse challenging the reasons or conditions of a person's confinement under color of law. Habeas corpus is available to prisoners challenging their convictions and sentences. The purpose of this order is to ensure that the detainee is not being held unlawfully or without sufficient cause. The U.S. Supreme Court interprets the Constitution, which means it defines constitutional rights and violations in the cases it decides. This petition, called a writ of Habeas Corpus, is filed in Federal Court (US District Court ) whether you are serving time in a federal or state prison. Generally, you must receive a ruling on each of your claims from the Supreme Court of.