Is it legal to buy and sell unit property privately?

The program itself is legal. The question is whether Lao Wang's house is allowed to be listed and whether you are willing to take your own risks.

If it cannot be listed, the contract will not be protected by law. Without real estate license, there is no legal property right. It is impossible for notarization to turn illegal into legal. If so, the existence of notarization is illegal.