It is not permissible to break the bone of a dead person.
It is narrated from Aisha (may Allah be pleased with her) that the Messenger of Allah ﷺ said:
كسر عظم الميت ككسره حيا
“Breaking the bone of a dead person (carries the sin) like breaking the bone of a living person (carries the sin).”
In the narration from Umm Salamah (may Allah be pleased with her), the words فى الاثم “in sin (it is like breaking the bone of a living person)” are additional. But this narration is da’if (weak).
(The Hanbalis) Cutting off any of the limbs of a dead person, destroying his body and burning it is forbidden, even if he himself made a bequest for it.
(Ibn Hajar al-Haytami, may Allah have mercy on him) This is among the major sins.
(Al-Albani, may Allah have mercy on him) It is not permissible to break the bone of a dead person.
Furthermore, the scholars have permitted post-mortem examination for investigating and inquiring into a crime, and dissection for medical treatment.