OPINION
delivered the opinion of the court,
We granted permission to appeal in this habeas corpus case to consider the legality of a sentence imposed pursuant to a plea agreement. The agreed sentence exceeds the maximum available term in the offender Range but does not exceed the maximum punishment authorized for the offense. For the reasons explained herein, we conclude that the plea-bargained sentence is legal. Thus, the judgment of the Court of Criminal Appeals dismissing the petition for writ of habeas corpus is affirmed.
I. Background
The petitioner, Shaun Hoover (“Hoover”), was charged with first degree murder and especially aggravated robbery for the 1997 shooting and robbery of Berry Young. Subsequent to his indictment, Hoover negotiated a plea agreement with the State. In exchange for Hoover pleading guilty to the lesser-included offenses of second degree murder and attempt to commit especially aggravated robbery, the State agreed that Hoover should be classified as a Range I, standard offender and that he should receive concurrent sentences of thirty-five years with a release eligibility of 100 percent for second degree murder and twelve years with a release eligibility of thirty percent for attempt to commit especially aggravated robbery. On November 29, 1999, the Shelby County Criminal Court entered a judgment in accordance with the plea agreement. 2
Almost six years later, on March 3, 2005, Hoover filed a habeas corpus petition challenging the legality of the thirty-five-year sentence he received for second degree murder. Hoover argued that the sentence is illegal because it exceeds the maximum twenty-five-year sentence statutorily authorized for a Range I offender convicted *778 of second degree murder. See Tenn.Code Ann. § 40-35-112(a)(l) (2006). The trial court granted Hoover habeas corpus relief, stating “the thirty-five[-]year sentence for second degree murder ... is for [a] term in excess of the provisions of the 1989 Act.”
The State appealed, and the Court of Criminal Appeals reversed the trial court’s judgment, holding that Hoover’s thirty-five-year sentence is legal because it does not exceed the maximum sixty-year sentence available for Class A felonies such as second degree murder.
See
Tenn.Code Ann. § 39-13-210(c) (2006); Tenn.Code Ann. § 40-35-lll(a), (b)(1) (2006). We granted Hoover’s application for permission to appeal to consider the legality of the guilty plea and to clarify any confusion stemming from our decision in
McConnell v. State,
II. Analysis
The right to seek habeas corpus relief is guaranteed by article I, section 15 of the Tennessee Constitution, which provides that “the privilege of the writ of Habeas Corpus shall not be suspended, unless when in case of rebellion or invasion, the General Assembly shall declare the public safety requires it.” However, the grounds upon which habeas corpus relief will be granted are narrow.
Hickman v. State,
Before considering the merits of Hoover’s claim, we must address the State’s argument that Hoover’s challenge to the legality of his thirty-five-year sentence is premature. The State avers that the challenge is premature because Hoover would remain in custody on the twelve-year concurrent sentence for attempt to commit especially aggravated robbery even if he receives habeas corpus relief on the thirty-five-year sentence for second degree murder. In addition, the State posits that Hoover may not challenge the validity of his thirty-five-year sentence until he serves “an uncontestedly valid sentence” of
*779
twenty-five years. We reject the State’s arguments. As we recently explained, when a sentence is illegal and void, the illegality inheres upon entry of the judgment imposing the sentence.
Smith,
Second degree murder is a Class A felony. Tenn.Code Ann. § 39 — 13—210(b) (2003). The statutorily authorized punishment for Class A felonies is a determinate sentence of not less than fifteen years nor more than sixty years. Tenn.Code Ann. § 40-35-lll(a), (b)(1) (2006). A Range I offender convicted of a Class A felony may receive a sentence of not less than fifteen nor more than twenty-five years. Tenn. Code Ann. § 40-35-112(a)(l) (2006). While Hoover’s plea-bargained thirty-five-year sentence is outside the parameters of Range I offenders, the plea-bargained sentence is well within the overall punishment range authorized for Class A felony offenses, such as second degree murder. A review of this Court’s decisions establishes that it is this latter range — the overall punishment range authorized for the plea offense — that controls the determination of whether an agreed sentence is legal.
In
State v. Mahler,
The sentence imposed was clearly within statutory limits fixed for the offense of murder in the second degree. In our opinion any question as to the classification of appellant as a Range II offender or as to his release eligibility was waived by the guilty plea. It was not a constitutional error in and of itself and at most rendered the sentence subject to attack on direct review by appeal. Appellant waived any right of appeal in the guilty plea proceedings, and expressly agreed to be sentenced with the classification and parole eligibility imposed.
Id.
at 228. We emphasized that the plea agreement in
Mahler
differed from “other cases where sentences were imposed which were higher or lower than that authorized by the statute designating the punishment for the crime” and noted that the sentences in “those [other] cases” were “subject to being later vacated or corrected.”
Id.
(citing
State v. Hamlin,
Ten years later, in
Hicks v. State,
Three years after
Hicks,
we decided
McConnell v. State,
Admittedly,
McConnell’s
explanation of the rationale supporting the decision to grant post-conviction relief is not a model of clarity. Indeed, Hoover is correct that language in
McConnell
suggests that relief was granted because the plea-bargained sentence exceeded the maximum sentence authorized by the 1989 Act for a Range I offender convicted of second degree murder.
See McConnell,
Thus clarified, McConnell does not entitle Hoover to habeas corpus relief. A plea-bargained sentence may legally exceed the maximum available in the offender Range so long as the sentence does not exceed the maximum punishment authorized for the plea offense. Hoover’s plea-bargained sentence is well below the maximum punishment authorized for the Class A felony offense of second degree murder. We reiterate that offender classification and release eligibility are non-jurisdictional and may be used as bargaining tools by the State and the defense in plea negotiations. 4 Hoover waived any irregularity *781 concerning his offender classification or release eligibility when he pleaded guilty. Thus, Hoover is not entitled to habeas corpus relief.
III. Conclusion
For the reasons stated herein, we reject Hoover’s argument that
McConnell
entitles him to habeas corpus relief. We clarify that post-conviction relief was granted in
McConnell
because the plea agreement was structured pursuant to an inapplicable statute. Consistent with
State v. Mahler,
It appearing that the defendant is indigent, costs of this appeal shall be paid by the State of Tennessee, for which execution may issue if necessary.
Notes
. The plea agreement was negotiated and structured pursuant to the provisions of the 1989 Criminal Sentencing Reform Act ("1989 Act”). Because the relevant statutory language has not changed since the judgment was entered in 1999, statutory citations in this opinion are to the current version of the Tennessee Code Annotated.
. A void or illegal sentence also may be challenged in a timely filed post-conviction petition.
See, e.g., State v. Mahler,
. We caution, however, that the State may not confer through plea negotiations release eligibility for criminal offenses that are statutorily ineligible for early release. See, e.g., Smith v. *781 Lewis, 202 S.W.3d 124, 128 (Tenn.2006) (holding a plea-bargained sentence illegal because it included early release eligibility even though a statute expressly prohibited early release eligibility for the plea offense).
