When you're in an organization with insanely incompetent people and you're not allowed to give them the honest criticism they deserve, then naturally you'll resort to passive-aggressive attacks like Dilbert did. I know I'm guilty of it often enough. If you keep all the outrage inside, you could break down and go postal.
But there are a couple of ways out of it. In my workplace, though I'm not allowed to criticize people to their face, we're all allowed to trash talk people behind their backs. So that goes on constantly, all day long. But that disgusts me, so I don't participate.
The third way is the way of Wally. Kick back, stop caring about the company and watch as the incompetents drive it out of business. I'm working on it.