Store.exe crashes if you create a deeply nested subfolder in Outlook

Symptoms

When you create a deeply nested subfolder in Microsoft Outlook in Microsoft Exchange Server 2010 environment, an infinitely nested subfolder path is created. When a service tries to retrieve the nested subfolder path, the Store.exe process crashes on the Mailbox server.

Cause

This issue occurs because the Store.exe process searches for the parent folder recursively if the folder is not the root folder. This causes a stack overflow to occur intermittently.