system: You are a legal assistant. Answer concisely and accurately. When legal text is provided, rely on it and do not invent facts.

user: Read the following U.S. Supreme Court case excerpt and classify it into the correct legal issue area. Excerpt: 490 U.S. 488 109 S.Ct. 1923 104 L.Ed.2d 540 Norm MALENG, etc., et al., Petitionersv.Mark Edwin COOK. No. 88-357. May 15, 1989. Kenneth O. Eikenberry, Olympia, Wash., for petitioners. John B. Midgley, Seattle, Wash., for respondent. PER CURIAM. 1 In 1958, respondent was convicted of robbery in Washington state court and sentenced to 20 years of imprisonment; th § sentence expired by its terms in 1978. In 1976, while on parole from that sentence, he was convicted of two counts of assault and one count of aiding a prisoner to escape; in 1978, the State sentenced him to two life terms and one 10-year term on those convictions. These sentences were maximum terms under Washington's then-indeterminate sentencing scheme, with the minimum term to be set by the Board of Prison Terms and Paroles. Under Washington law, the 1958 conviction will increase by several years the mandatory minimum term which respondent will have to serve on his 1978 sentences. 2 In 1976 respondent was also convicted of bank robbery and conspiracy in federal court and sentenced to 30 years of imprisonment. He is currently serving his federal sentence in a federal penitentiary in California, but the State of Washington has lodged a detainer against him with federal prison authorities. Respondent is scheduled to begin serving the sentences imposed upon him by the Washington courts in 1978 at the expiration of his federal term. 3 In 1985, while in federal prison, respondent filed a pro se petition for habeas corpus relief in the United States District Court for the Western District of Washington. Respondent's petition listed the 1958 Washington conviction as the "conviction under attack," alleging that it was invalid because respondent had not been given a competency hearing, even though there was reasonable doubt as to his competency to stand trial. Respondent also alleged that the 1958 conviction had been used illegally to enhance his 1978 state sentences, which he had not yet begun to serve.* The District Court dismissed the petition for lack of subject-matter jurisdiction, holding that respondent was not "in custody" for the purposes of a habeas attack on the 1958 conviction because the sentence imposed for that conviction had already expired. The Court of Appeals for the Ninth Circuit reversed. 847 F.2d 616 (1988). The Court of Appeals held that respondent was still "in custody" under the 1958 conviction, even though the sentence imposed for that conviction had expired, because it had been used to enhance the sentences imposed in 1978 for his 1976 state convictions, which he had yet to serve. Id., at 618-619. We granted certiorari to review this interpretation of the "in custody" requirement. 488 U.S. 941, 109 S.Ct. 363, 102 L.Ed.2d 353 (1988). We conclude that respondent is not presently "in custody" under the 1958 sentence, but that he is "in custody" under the 1978 state sentences which he has not yet begun to serve. 4 The federal habeas statute gives the United States district courts jurisdiction to entertain petitions for habeas relief only from persons who are "in custody in violation of the Constitution or laws or treaties of the United States." 28 U.S.C. § 2241(c)(3) (emphasis added); see also 28 U.S.C. § 2254(a). We have interpreted the statutory language as requiring that the habeas petitioner be "in custody" under the conviction or sentence under attack at the time his petition is filed. See Carafas v. LaVallee, 391 U.S. 234, 238, 88 S.Ct. 1556, 1560, 20 L.Ed.2d 554 (1968). In this case, the Court of Appeals held that a habeas petitioner may be "in custody" under a conviction whose sentence has fully expired at the time his petition is filed, simply because that conviction has been used to enhance the length of a current or future sentence imposed for a subsequent conviction. We think that this interpretation stretches the language "in custody" too far. 5 Our interpretation of the "in custody" language has not required that a prisoner be physically confined in order to challenge his § ntence on habeas corpus. In Jones v. Cunningham, 371 U.S. 236, 83 S.Ct. 373, 9 L.Ed.2d 285 (1963), for example, we held that a prisoner who had been placed on parole was still "in custody" under his unexpired sentence. We reasoned that the petitioner's release from physical confinement under the sentence in question was not unconditional; instead, it was explicitly conditioned on his reporting regularly to his parole officer, remaining in a particular community, residence, and job, and refraining from certain activities. Id., at 242, 83 S.Ct., at 376-377; see also Hensley v. Municipal Court, San Jose-Milpitas Judicial Dist., Santa Clara County, 411 U.S. 345, 93 S.Ct. 1571, 36 L.Ed.2d 294 (1973); Braden v. 30th Judicial Circuit Court of Ky., 410 U.S. 484, 93 S.Ct. 1123, 35 L.Ed.2d 443 (1973). 6 We have never held, however, that a habeas petitioner may be "in custody" under a conviction when the sentence imposed for that conviction has fully expired at the time his petition is filed. Indeed, our decision in Carafas v. LaVallee, supra, strongly implies the contrary. In Carafas, the petitioner filed his habeas application while he was actually incarcerated under the sentence he sought to attack, but his sentence expired and he was unconditionally discharged from custody while his appeal from the denial of habeas relief below was pending before this Court. The State argued that the unconditional discharge rendered the case moot. We rejected this argument, holding that the "collateral consequences" of the petitioner's conviction—his inability to vote, engage in certain businesses, hold public office, or serve as a juror—prevented the case from being moot. Id., 391 U.S., at 237-238, 88 S.Ct., at 1559. We went on to say, however, that the unconditional release raised a "substantial issue" as to the statutory "in custody" requirement. Id., at 238, 88 S.Ct., at 1559-1560. While we ultimately found that requirement satisfied as well, we rested that holding not on the collateral consequences of the conviction, but on the fact that the petitioner had been in physical custody under the challenged conviction at the time the petition was filed. Ibid. The negative implication of this holding is, of course, that once the sentence imposed for a conviction has completely expired, the collateral consequences of that conviction are not themselves sufficient to render an individual "in custody" for the purposes of a habeas attack upon it. 7 The question presented by this case is whether a habeas petitioner remains "in custody" under a conviction after the sentence imposed for it has fully expired, merely because of the possibility that the prior conviction will be used to enhance the sentences imposed for any subsequent crimes of which he is convicted. We hold that he does not. While we have very liberally construed the "in custody" requirement for purposes of federal habeas, we have never extended it to the situation where a habeas petitioner suffers no present restraint from a conviction. Since almost all States have habitual offender statutes, and many States provide as Washington does for specific enhancement of subsequent sentences on the basis of prior convictions, a contrary ruling would mean that a petitioner whose sentence has completely expired could nonetheless challenge the conviction for which it was imposed at any time on federal habeas. This would read the "in custody" requirement out of the statute and be contrary to the clear implication of the opinion in Carafas v. LaVallee, supra. 8 In this case, of course, the possibility of a sentence upon a subsequent conviction being enhanced because of the prior conviction actually materialized, but we do not think that requires any different conclusion. When the second sentence is imposed, it is pursuant to the second conviction that the petitioner is incarcerated and is therefore "in custody." 9 We do think, however, that respondent may ch llenge the sentences imposed upon him by the State of Washington in 1978, even though he is not presently serving them. In McNally v. Hill, 293 U.S. 131, 55 S.Ct. 24, 79 L.Ed. 238 (1934), we held that the "in custody" requirement meant present physical confinement under the conviction or sentence under attack. Were this rule still the law, respondent would not be "in custody" even under the 1978 sentences, because he has not yet begun to serve them. But in Peyton v. Rowe, 391 U.S. 54, 88 S.Ct. 1549, 20 L.Ed.2d 426 (1968), we overruled McNally and held that a petitioner who was serving two consecutive sentences imposed by the Commonwealth of Virginia could challenge the second sentence which he had not yet begun to serve. 10 While in this case respondent is serving a federal sentence, rather than another sentence imposed by the State of Washington, we do not think this factual difference from Peyton v. Rowe requires a different result. The State of Washington has placed a detainer with the federal authorities to ensure that at the conclusion of respondent's federal sentence, he will be returned to the state authorities to begin serving his 1978 state sentences. In Braden v. 30th Judicial Circuit Court of Ky., supra, we held that a prisoner serving a sentence in Alabama, who was subject to a detainer filed with his Alabama jailers by Kentucky officials, was "in custody" for the purpose of a habeas attack on the outstanding Kentucky charge upon which the detainer rested. We think that Braden and Peyton together require the conclusion that respondent in this case was "in custody" under his 1978 state sentences at the time he filed. Since we think respondent's habeas petition, construed with the deference to which pro se litigants are entitled, Haines v. Kerner, 404 U.S. 519, 92 S.Ct. 594, 30 L.Ed.2d 652 (1972), can be read as asserting a challenge to the 1978 sentences, as enhanced by the allegedly invalid prior conviction, see United States v. Tucker, 404 U.S. 443, 92 S.Ct. 589, 30 L.Ed.2d 592 (1972), we affirm the Court of Appeals' finding that respondent has satisfied the "in custody" requirement for federal habeas jurisdiction. 11 Our holding is limited to the narrow issue of "custody" for subject-matter jurisdiction of the habeas court. We express no view on the extent to which the 1958 conviction itself may be subject to challenge in the attack upon the 1978 sentences which it was used to enhance. See 28 U.S.C. § 2254 Rule 9(a). The judgment of the Court of Appeals is 12 Affirmed. * Respondent also alleged that the 1958 conviction had been used to enhance the federal sentence which he was serving at the time of the filing. The courts below did not address that contention, however, and respondent has not pressed it before this Court. Accordingly, we do not consider it here.

assistant: 1