Please wait

Exhibit 23.2

Consent of Independent Registered Public Accounting Firm

We consent to the reference to our firm under the caption “Experts” in the Post-Effective Amendment No. 1 on Form S-3 to Form S-1 Registration Statement and related Prospectus of Ultra Petroleum Corp. and subsidiaries and to the incorporation by reference therein of our reports dated February 28, 2018, with respect to the consolidated financial statements of Ultra Petroleum Corp. and subsidiaries and the effectiveness of internal control over financial reporting of Ultra Petroleum Corp. and subsidiaries, included in its Annual Report (Form 10-K) for the year ended December 31, 2017, filed with the Securities and Exchange Commission.

/s/ Ernst & Young, LLP

Houston, Texas

March 12, 2018