A Kernel can save but the service that runs on top of it can be unsafe. You need to learn into elevate right exploit. Those are not kernel flaws but service flaws that run on top of the kernel. Don't forget that perfect code doesn't exist because the code are written by human and human are not perfect.

The Internet and computer world is like the Far West. It's free for all. It's new in the evolution of mankind. We did error and we'll continue making error using technology at the same rate we learn from those error. Don't forget that computer security and the Internet technology are very new. They barely have 12 years old of making error and learning from them. Give it some time for those technology to grow.