Exhibit 5.2

| | |
UBS AG Bahnhofstrasse 45 8098 Zurich Switzerland | | Homburger AG Prime Tower Hardstrasse 201 CH–8005 Zurich T +41 43 222 10 00 F +41 43 222 15 00 lawyers@homburger.ch |
Zurich, March 8, 2022
UBS AG – Form F-3 Registration Statement for Debt Securities and Warrants
Ladies and Gentlemen
We, Homburger AG, have acted as special Swiss counsel to UBS AG, a corporation organized under the laws of Switzerland (the Company), in connection with the registration under the U.S. Securities Act of 1933 (the Act) of debt securities and warrants to be issued and sold by the Company on a continuous basis under the Registration Statement as defined hereinafter on or after the date of this opinion (the Securities).
Capitalized terms used herein shall have the meaning attributed to them in the Registration Statement unless otherwise defined herein.
This opinion is confined to and given on the basis of the laws of Switzerland in force at the date hereof. Such laws and the interpretation thereof are subject to change. In the absence of explicit statutory law, we base our opinion solely on our independent professional judgment. This opinion is also confined to the matters stated herein and the Documents (as defined below), and is not to be read as extending, by implication or otherwise, to any agreement or document referred to in any of the Documents or any other matter.
For purposes of this opinion, we have not conducted any due diligence or similar investigation as to factual circumstances that are or may be referred to in the Documents, and we express no opinion as to the accuracy of representations and warranties of facts set out in the Documents or the factual background assumed therein.