Exhibit 5.2

| | |
To: UBS AG Bahnhofstrasse 45 8001 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, June 11, 2024
UBS AG, acting through its London branch
ETRACS Gold Shares Covered Call Exchange Traded Notes (ETNs) linked to the Credit Suisse NASDAQ Gold FLOWS™ 103 Index, due February 2, 2033 (CUSIP: 22542D233)
ETRACS Silver Shares Covered Call Exchange Traded Notes (ETNs) linked to the Credit Suisse NASDAQ Silver FLOWS™ 106 Index, due April 21, 2033 (CUSIP: 22542D225)
ETRACS Crude Oil Shares Covered Call Exchange Traded Notes (ETNs) linked to Credit Suisse NASDAQ WTI Crude Oil FLOWS™ 106 Index, due April 24, 2037 (CUSIP: 22539U602)
We, Homburger AG, have acted as special Swiss counsel to UBS AG, a Swiss bank, in connection with the issuance by UBS AG, acting through its London branch (the Issuing Branch), of (i) up to 440,418 of ETRACS Gold Shares Covered Call Exchange Traded Notes (ETNs) linked to the Credit Suisse NASDAQ Gold FLOWS™ 103 Index, due February 2, 2033 (CUSIP: 22542D233) (the New ETN-6 Notes), (ii) up to 508,124 of ETRACS Silver Shares Covered Call Exchange Traded Notes (ETNs) linked to the Credit Suisse NASDAQ Silver FLOWS™ 106 Index, due April 21, 2033 (CUSIP: 22542D225) (the New ETN-7 Notes), and (iii) up to 2,241,233 of ETRACS Crude Oil Shares Covered Call Exchange Traded Notes (ETNs) linked to Credit Suisse NASDAQ WTI Crude Oil FLOWS™ 106 Index, due April 24, 2037 (CUSIP: 22539U602) (the New ETN-20 Notes and, together with the New ETN-6 Notes and the New ETN-7 Notes, the New Notes, and the New Notes together with the Outstanding Notes (as defined herein), the Notes), in each case under the Indenture (as defined below). As such counsel, we have been requested to give our opinion as to certain matters of Swiss law relating to the New Notes.
