Exhibit 23.7
Zurich, 25 May 2022
Consent of Independent Registered Public Accounting Firm
We consent to the reference to our firm under the caption “Experts” in the Registration Statement (Form F-3), and the related prospectus of UBS AG and UBS Switzerland AG for the registration of debt securities and warrants and to the incorporation by reference therein of our reports dated 4 March 2022, with respect to the consolidated financial statements of UBS AG, and the effectiveness of internal control over financial reporting of UBS AG, included in its Annual Report (Form 20-F) for the year ended 31 December 2021, filed with the Securities and Exchange Commission.
Ernst & Young Ltd
/s/ Ernst & Young Ltd