is it legal for my ex husband to change my sons last name without my consent
He can't legally change the child's name without notifying you (serving you with the name-change petition).
If he starts calling the child by a different name, that is not "changing the child's name."