Hi Fernando,
This looks like the remains of a mule ear musket. The stock seems to be missing the back portion?
If i can decern this right, the original barrel to this stock noq functions as a sleeve for a smaller inserted barrel.
I would be very carefull, it does not look like anything that would function and would in my opinion not be a standard cavalry carbine/musket.