The disadvantage is that there's a high energy cost involved in stripping oxygen off carbon dioxide and replacing it with hydrogen (it is storing energy in C-H and C-C bonds). As the cheap easy-to-extract oil is mostly gone at this point, however, these costs are approaching parity.
The real necessary use cases of hydrocarbon fuels are for rockets and jet airplanes, as battery energy density is just too low. Long-distance oceanic shipping is another area where hydrocarbon fuels might be necessary, although there are some other options (wind/solar/iron redox).