Banks aren't the only ones that hold risky commercial-real-estate debt. Pension funds are about to feel the pain, too.

Recent bank failures magnified risks of commercial real estate, which is also grappling with higher borrowing costs on the heels of Fed rate hikes.