My understanding is they would serve a further 10 minutes and then could be replaced at the end of that time period, providing the team hasn't used the maximum number of substitutes.
One question that I do have though is if a sub commits and act of dissent that they are cautioned for, I presume...