They don't own the gigafactory in Shanghai, but they do own the land under which it is built. https://www.nytimes.com/2024/03/27/world/asia/elon-musk-tesla-china.html