Crude's been sitting in those formations since the dinos.
It's not going bad in a couple years. Petrol expires because it is heavily refined, cracked etc for higher octane rating at the cost of shelf-life.
Unrefined it is basically infinite. If it is refined it varies from months to years, to potentially decades depending on exactly what it is. But worst case, you can always refine it again if it goes bad.