42 Pa.C.S. § 8152
(a) General rule.— Except as otherwise provided in this section, a judicial or other sale of real estate shall not affect the lien of a mortgage thereon, if the lien of the mortgage is or shall be prior to all other liens upon the same property except:
(b) Property of a decedent, etc.— A judicial sale of the property shall divest the lien of a mortgage to the extent authorized by the court pursuant to the following provisions of Title 20 (relating to decedents, estates and fiduciaries):
Section 3353 (relating to order of court).
Section 3357 (relating to title of purchaser).
Cross References. Section 8152 is referred to in sections 3315, 4315, 5315 of Title 68 (Real and Personal Property).